CSS class name to add to the view's element.
A Boolean indicating whether a close icon should appear on hover when selected.
Optional configuration for additional controls rendered with the button, such as a close indicator on hover, settings popover, etc.
Identifier for the button. If not provided, the value
will be used as the button's identifier.
A custom handler function that is called when the button is deselected.
A custom handler function that is called when the button is selected.
Optional data associated with the button.
Renderer for the view, which can either be an HTML string or a function that receives the view's data, if any, and returns the final HTML string to render as the view's content.
A Boolean value that indicates whether the view requires valid data to be provided in order
for it to be rendered. When this value is true
and there is no data provided, then the
view will be rendered as empty.
Default value is false
.
A Boolean indicating whether the button should be selected.
Button label.
An object that defines the CSS selectors for various UI elements in the view and their
reference keys. When a view has been rendered and added to the DOM, you can reference and
access these UI targets using this.ui.#key#
, where #key#
is the key used with this
object.
Button value.
Generated using TypeDoc
A data type that represents the configuration options for a switch component.