ui.Button

A clickable button with a text label.

UsageReturns
ui.Button(label, onClick, disabled, style)ui.Button
ArgumentTypeDetails
labelString, optional

The button's label. Defaults to an empty string.

onClickFunction, optional

A callback fired when the button is clicked. The callback is passed the button widget.

disabledBoolean, optional

Whether the button is disabled. Defaults to false.

styleObject, optional

An object of whitelisted CSS styles with their values to be set for this widget. Defaults to an empty object.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!