ui.Thumbnail.onClick

Registers a callback that's fired when the thumbnail is clicked.

Returns an ID which can be passed to unlisten() to unregister the callback.

UsageReturns
Thumbnail.onClick(callback)String
ArgumentTypeDetails
this: ui.thumbnailui.ThumbnailThe ui.Thumbnail instance.
callbackFunctionThe callback to fire when the thumbnail is clicked. The callback is passed the thumbnail widget.