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.
A Boolean indicating whether the segments should function as filters to the primary button. This value affects which events are triggered when a segment is selected as filters should be handled differently than changing values.
A Boolean indicating whether one or more values from multiple segment groups can be
selected, only when filter
is true
. Default value is true
.
Identifier for the button. If not provided, the value
will be used as the button's identifier.
A Boolean indicating whether multiple segments can be selected, only when filter
is
true
. Default value is false
.
A custom handler function that is called when a segment button's selected value changes.
A custom handler function that is called when the button is deselected.
A custom handler function that is called when a segment is deselected.
A custom handler function that is called when the button is selected.
A custom handler function that is called when a segment 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
.
An array of button segment or segment group configurations to render for the button's segments.
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 segmented button component.