Usage
Signature:
interface CButtonsetMultipleElement
Typescript Import Format
//To typecheck the element APIs, import as below.
import { CButtonsetMultipleElement } from "oj-c/buttonset-multiple";
//For the transpiled javascript to load the element's module, import as below
import "oj-c/buttonset-multiple";
For additional information visit:
Note: Application logic should not interact with the component's properties or invoke its methods until the BusyContext indicates that the component is ready for interaction.
Attributes
-
chroming :"borderless"|"outlined"
-
Indicates in what states the button has chromings in background and border.
- Default Value:
"outlined"
Supported Values:
Value Description borderlessBorderless buttons are a less prominent variation. outlinedOutlined buttons are a more prominent variation. Names
Item Name Property chromingProperty change event chromingChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-chroming-changed -
disabled :boolean
-
Specifies that the buttonset should be disabled.
- Default Value:
false
Names
Item Name Property disabledProperty change event disabledChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-disabled-changed -
display :"all"|"icons"|"label"
-
Display just the label, the icons, or all.
- Default Value:
"all"
Supported Values:
Value Description allDisplay both the label and icons. iconsDisplay only the icons. labelDisplay only the text label. Names
Item Name Property displayProperty change event displayChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-display-changed -
items :Array.<oj-c.ButtonsetMultiple.ToggleItem>
-
Type Def ToggleIcon { type?: 'class'; class: string; } | { type: 'img'; src: string; }; - Default Value:
[]
Names
Item Name Property itemsProperty change event itemsChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-items-changed -
layout-width :"auto"|"equal"
-
Specifies if button width should be equal or based on contents.
Names
Item Name Property layoutWidthProperty change event layoutWidthChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-layout-width-changed -
max-width :(number|string)
-
Specifies the buttonset max width
Names
Item Name Property maxWidthProperty change event maxWidthChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-max-width-changed -
size :"sm"|"md"|"lg"
-
Specifies the size of the toggle buttons
- Default Value:
"md"
Supported Values:
Value Description lgDisplay a large button. mdDisplay a default size button. smDisplay a small button. Names
Item Name Property sizeProperty change event sizeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-size-changed -
value :Array.<string>
-
Specifies which toggle button is selected
- Supports writeback:
true
Names
Item Name Property valueProperty change event valueChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-value-changed -
width :(number|string)
-
Specifies the buttonset width
Names
Item Name Property widthProperty change event widthChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-width-changed
Methods
-
getProperty(property) : {any}
-
Retrieves the value of a property or a subproperty.
Parameters:
Name Type Description propertyThe property name to get. Supports dot notation for subproperty access. Returns:
- Type
- any
-
setProperties(properties) : {void}
-
Performs a batch set of properties.
Parameters:
Name Type Description propertiesAn object containing the property and value pairs to set. Returns:
- Type
- void
-
setProperty(property, value) : {void}
-
Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.
Parameters:
Name Type Description propertyThe property name to set. Supports dot notation for subproperty access. valueThe new value to set the property to. Returns:
- Type
- void