Drop Down
(part of package 'Bootstrap Extra Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent
This is a reference page; many components have detailed usage guides here.
Properties
buttonStyleClass
Type: Styleclass
enabled
Type: Enabled Default Value: true
imageStyleClass
Type: Styleclass
isButton
Type: Boolean Default Value: true
isSplitButton
Type: Boolean Default Value: false
menuItems
Type: Array<CustomType<bootstrapextracomponents-dropdown.MenuItem>>
styleClass
Type: Styleclass
text
Type: String
toolTipText
Type: String
visible
Type: Visible
Events
onAction(event)
Parameters:
{JSEvent} event
onMenuItemSelected(event,menuItem)
Parameters:
{JSEvent} event
API
addMenuItem(menuItem)
Adds the given menu item to the Dropdown
Parameters:
{CustomType<bootstrapextracomponents-dropdown.MenuItem>} menuItem MenuItem The bootstrapextracomponents-dropdown.MenuItem item to be added to the Dropdown.
removeMenuItem(itemId)
Removes the menu item with the given item ID
Parameters:
{String} itemId The unique identifier of the menu item to be removed from the Dropdown.
setMenuItems(menuItems)
Sets the menu items of the Dropdown
Parameters:
{Array<MenuItem>} menuItems An array of bootstrapextracomponents-dropdown.MenuItem items to be set for the Dropdown, replacing any existing items.
Types
MenuItem
scripting type: CustomType<bootstrapextracomponents-dropdown.MenuItem>
enabled
Type: enabled
Default Value: true
iconName
Type: string
isDivider
Type: boolean
itemId
Type: string
onAction
Type: function
text
Type: tagstring
userData
Type: object
Last updated
Was this helpful?