0

Changing the label of KONtx.control.TextButton

Hi,

How to change / toggle the label of KONtx.control.TextButton in updateview?



or

I have two KONtx.control.TextButton at the same position, and based on logic only one button visible will be true and focused. visibility is working fine but focus is not happening for second control?

Ex. I have login and logout buttons, based on the user login status need to provide only one button and focus should be for the button.

Regards
Swarup

by
1 Reply
  • QUOTE (swarupa @ Mar 11 2011, 04:04 AM) <{POST_SNAPBACK}>
    Hi,

    How to change / toggle the label of KONtx.control.TextButton in updateview?


    CODE
    updateView: function () {
    this.controls.button.setText("hello, world!");
    }


    QUOTE
    I have two KONtx.control.TextButton at the same position, and based on logic only one button visible will be true and focused. visibility is working fine but focus is not happening for second control?

    Ex. I have login and logout buttons, based on the user login status need to provide only one button and focus should be for the button.

    Regards
    Swarup

    I was able to toggle between the controls and have focus set properly by setting visible to true/false or by setting hide()/show(). So I'd have to see your code.
    0

Recent Posts

in General - Yahoo! TV Widgets