onItemClick

fires after the control has been clicked

void onItemClick(string/number id,event e){ ... };

Parameters

idstring/numbercontrol ID
eeventevent object

Example

button.attachEvent("onItemClick", function(id, e){
    //code
});

Related samples

Details

The ID of the whole control is passed (but not a separate option).

See also
Back to top