Class: Button

ui.Button

new ui.Button ()

Element representing a UI button.

Properties:
Name Type Description
icon string

(default: "") The name of the icon to display.

secondaryIcon string

(default: "") The name of the secondary icon to display.

text string

(default: "") The label text to display.

flat bool

(default: false) Whether the button is flat, i.e. borderless.

checked bool

(default: false) Whether the button is currently in checked state.

labelProfile html.Object

(default: null) The profile that is applied to the labels.

repeatAcceleration number

(default: 0) The acceleration factor of auto-repeated triggering rate. A value greater than 1.0 accelerates the triggering, while a value less than 1.0 decelerates it. A value of 0 disables auto-repeat.

styleOfBackground template

The background style template.

Extends