Dropdown API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
data-markup-content | string | — | HTML content of the trigger element. Not sanitized — sanitize it in your application to prevent XSS. |
data-markup-class | string | — | CSS class applied to the trigger element. |
data-dropdown-align | "auto" | "top" | — | Alignment of the dropdown panel. |
data-autoclose | boolean | false | Automatically closes the dropdown after an item inside it is clicked. |
Events
| Event | Description | Returns | |
|---|---|---|---|
status | Fires when the dropdown opens or closes. | { detail: { status: 'opened' | 'closed' } } | |