0

Refresh 'Label' Property of the Text control

Hi all,
In my widget I would like to change the 'label' property of a element.text control, based on 'onSelect' event of a button. Currently, I am setting the label property in the updateView function and calling reloadView method in the onSelect event. But the label does not change on the view, although the changed value appears in the log. I am using full screen view. Please help.

Thank You.
Priya

by
3 Replies
  • QUOTE (ganeshkumar @ Oct 3 2010, 06:08 PM) <{POST_SNAPBACK}>
    Hi all,
    In my widget I would like to change the 'label' property of a element.text control, based on 'onSelect' event of a button. Currently, I am setting the label property in the updateView function and calling reloadView method in the onSelect event. But the label does not change on the view, although the changed value appears in the log. I am using full screen view. Please help.

    Thank You.
    Priya

    Hi Priya,
    Could you provide some code?

    - Ben
    0
  • QUOTE (Benjamin Toll @ Oct 5 2010, 07:07 PM) <{POST_SNAPBACK}>
    Hi Priya,
    Could you provide some code?

    - Ben


    Thanks Ben,
    I was able to solve it by setting the 'text' property instead of the 'label' property.

    Priya
    0
  • Also, might want to look at the KONtx.elements.Text().setText() function.
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets