Skip to content

Button

Button

Represents a button element with various properties.

Kind: global class

new Button(options)

Constructs a button object with the provided properties.

Returns: Object - - The constructed button object.

ParamTypeDescription
optionsObjectThe options object containing the button properties.
options.emojiObjectThe emoji object for the button.
options.labelstringThe label text for the button.
options.urlstringThe URL to open when the button is clicked.
options.customidstringThe custom ID for the button.
options.stylenumberThe style of the button.
options.disabledbooleanWhether the button is disabled or not.