A clickable button with a text label.

ui.Button(label, onClick, disabled, style, imageUrl)ui.Button
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 allowed CSS styles with their values to be set for this widget. Defaults to an empty object.

imageUrlString, optional

Optional image url. If provided, the button will be rendered as an image and the value text will be shown on mouse hover. Only data: urls and icons loaded from gstatic.com are allowed.