DropdownOption
        Inherits: Control
Represents an item in a dropdown. Either key or text must be specified, else an
A ValueError will be raised.
Properties
- 
          content(Control | None) –A Controlto display in this option. If not specified,textwill be used as
- 
          key(str | None) –Option's key. If not specified textwill
- 
          leading_icon(IconDataOrControl | None) –An optional icon to display before the content or text. 
- 
          style(ButtonStyle | None) –Customizes this menu item's appearance. 
- 
          text(str | None) –Option's display text. If not specified keywill be used as fallback.
- 
          trailing_icon(IconDataOrControl | None) –An optional icon to display after the content or text. 
Properties#
class-attribute
      instance-attribute
  
#
content: Control | None = None
A Control to display in this option. If not specified, text will be used as
fallback, else text will be ignored.
class-attribute
      instance-attribute
  
#
key: str | None = None
Option's key. If not specified text will
be used as fallback.
class-attribute
      instance-attribute
  
#
leading_icon: IconDataOrControl | None = None
An optional icon to display before the content or text.
class-attribute
      instance-attribute
  
#
style: ButtonStyle | None = None
Customizes this menu item's appearance.
class-attribute
      instance-attribute
  
#
text: str | None = None
Option's display text. If not specified key will be used as fallback.
Raises:
class-attribute
      instance-attribute
  
#
trailing_icon: IconDataOrControl | None = None
An optional icon to display after the content or text.