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.Thumbnail

The ui.Thumbnail instance.

callbackFunction

The callback to fire when the thumbnail is clicked. The callback is passed the thumbnail widget.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!