View Source Moon.Design.Dropdown.IconOption (Moon v2.89.1)
Single oprion for the dropdown component. Renders as a button
Properties
- testid :string - Data-testid attribute for button
- id :string - Id attribute for buttons
- title :string - Title to be shown when no default slot is given
- class :css_class - Additional CSS classes for the button tag
- disabled :boolean - If the button is disabled
- value :any, from_context: :value - Value of the option, in most cases got from context
- is_selected :boolean, from_context: :is_selected - If the option is selected, in most cases got from context
- has_bottom_divider :boolean, default: false - Adds section divider after the option
- values :map, from_context: :values - Additional values to be passed
Slots
- default - Inner content of the option, unused
Events
- on_click, from_context: :on_click - On click event, in most cases got from context
Summary
Functions
Callback implementation for Surface.Component.render/1
.
Functions
Callback implementation for Surface.Component.render/1
.