How to dynamically set the onSelect event for a button

Hello, I have got a button in my widget, but to create the events element after the button is created. For the label you can use setText(), but is there also a function to do the same for the onSelect element? I've tried a few thing, but none worked out.

Thanks in advance, Jan Thiemen

2 Replies
  • Hi Jan,

    Let me know what is the use-case you are trying to implement. In most cases static event handlers should suffice.



  • Hi, I wanted to use it to add the onselect event to my once a file from a server was loaded. Instead of this I'm now just deleting the button and creating a new one.


Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets