Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Multiple handlers on a widget

$
0
0
Hi,
We are making the transition from SmartGWT to SmartClient Just wondering if it's possible to add multiple handlers to a single widget.

For example, in SmartGWT we were able to add handlers on a button using the addClickhandler method :

Button test= new Button("Test Button);
test.addClickHandler(new ClickHandler() { ... } );
test.addClickHandler(new ClickHandler() { ... } );

In SmartClient we have to define the click function ex.:
var functionObj = isc.ToolStripButton.create({
click: function () {...} });

I don't see the possibility of adding more than one handler since we just simply define the click function.

Is there a similar mechanism to addClickHandler for SmartClient or do we have to manage them?

Thanks

Viewing all articles
Browse latest Browse all 4756