Usage
Signature:
interface MenuSelectManyElement
Typescript Import Format
//To typecheck the element APIs, import as below.
import { MenuSelectManyElement } from "ojs/ojmenuselectmany";
//For the transpiled javascript to load the element's module, import as below
import "ojs/ojmenuselectmany";
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.
Slots
JET components that allow child content support slots. Please see the slots section of the JET component overview doc for more information on allowed slot content and slot types.
-
Default
-
The <oj-menu-select-many> element accepts
oj-optionelements as children. See the oj-option documentation for details about accepted children and slots.
Attributes
-
disabled :boolean
-
Disables all the checkable menu items if set to
true.- Default Value:
false
- Since:
- 6.0.0
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 -
options :(Array.<oj.ojMenuSelectMany.Option>|DataProvider.<any, any>|null)
-
- Default Value:
null
- Since:
- 6.0.0
Names
Item Name Property optionsProperty change event optionsChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-options-changed -
value :Array.<any>
-
The value of the element. The value is an array with any type of items.
- Default Value:
[]
- Supports writeback:
true
- Since:
- 6.0.0
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
Methods
-
getProperty(property) : {any}
-
Retrieves a value for a property or a single subproperty for complex properties.
Parameters:
Name Type Description propertystring The property name to get. Supports dot notation for subproperty access. - Since:
- 6.0.0
Returns:
- Type
- any
-
setProperties(properties) : {void}
-
Performs a batch set of properties.
Parameters:
Name Type Description propertiesObject An object containing the property and value pairs to set. - Since:
- 6.0.0
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 [property]Changed event.
Parameters:
Name Type Description propertystring The property name to set. Supports dot notation for subproperty access. valueany The new value to set the property to. - Since:
- 6.0.0
Returns:
- Type
- void
Type Definitions
-
Option
-
Properties:
Name Type Argument Description disabledboolean <optional>
menu item is disabled. idstring <optional>
menu item id. labelstring menu item label. valueany menu item value.