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


Type: Array<CustomType<bootstrapextracomponents-dropdown.MenuItem>>


styleClass

Type: Styleclass


text

Type: String


toolTipText

Type: String


visible

Type: Visible


Events

onAction(event)

Parameters:


onMenuItemSelected(event,menuItem)

Parameters:


API

addMenuItem(menuItem)

Adds the given menu item to the Dropdown

Parameters:


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

scripting type: CustomType<bootstrapextracomponents-dropdown.MenuItem>


Last updated

Was this helpful?