Returns an ID which can be passed to unlisten() to unregister the callback.
Usage | Returns |
---|---|
Thumbnail.onClick(callback) | String |
Argument | Type | Details |
---|---|---|
this: ui.thumbnail | ui.Thumbnail | The ui.Thumbnail instance. |
callback | Function | The callback to fire when the thumbnail is clicked. The callback is passed the thumbnail widget. |