Skip to main content

Dropdown

Development

Examples

PreviewAngularReactVueJavaScript
PreviewAngularReactVueJavaScript
Since 1.4.0
PreviewAngularReactVueJavaScript
PreviewAngularReactVueJavaScript

API (ix-dropdown)

Properties

Name
Description and specifications
anchor
Define an anchor element
Attribute:
anchor
Type:
HTMLElement | Promise<HTMLElement> | string | undefined
closeBehavior
Controls if the dropdown will be closed in response to a click event depending on the position of the event relative to the dropdown. If the dropdown is a child of another one, it will be closed with the parent, regardless of its own close behavior.
Attribute:
close-behavior
Type:
"both" | "inside" | "outside" | boolean
Default:
'both'
header
An optional header shown at the top of the dropdown
Attribute:
header
Type:
string | undefined
placement
Placement of the dropdown
Attribute:
placement
Type:
"bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start"
Default:
'bottom-start'
positioningStrategy
Position strategy
Attribute:
positioning-strategy
Type:
"absolute" | "fixed"
Default:
'fixed'
show
Show dropdown
Attribute:
show
Type:
boolean
Default:
false
suppressAutomaticPlacement
Since 2.0.0
Suppress the automatic placement of the dropdown.
Attribute:
suppress-automatic-placement
Type:
boolean
Default:
false
trigger
Define an element that triggers the dropdown. A trigger can either be a string that will be interpreted as id attribute or a DOM element.
Attribute:
trigger
Type:
HTMLElement | Promise<HTMLElement> | string | undefined

Events

Name
Description and specifications
showChanged
Fire event after visibility of dropdown has changed
Detail:
boolean

API (ix-dropdown-item)

Properties

Name
Description and specifications
checked
Whether the item is checked or not. If true a checkmark will mark the item as checked.
Attribute:
checked
Type:
boolean
Default:
false
disabled
Disable item and remove event listeners
Attribute:
disabled
Type:
boolean
Default:
false
hover
Display hover state
Attribute:
hover
Type:
boolean
Default:
false
icon
Icon of dropdown item
Attribute:
icon
Type:
string | undefined
label
Label of dropdown item
Attribute:
label
Type:
string | undefined

Events

No events available for this component.