Skip to main content

SelectOption

One option in a Select.

Inherits: Control

Properties

  • content - A custom control shown instead of text.
  • text - The text of this option, shown in the list and in the closed select.
  • value - The value the select takes when this option is chosen.

Properties​

contentclass-attributeinstance-attribute​

content: Control | None = None

A custom control shown instead of text.

textclass-attributeinstance-attribute​

text: str | None = None

The text of this option, shown in the list and in the closed select.

If None, value is shown.

valueinstance-attribute​

value: str

The value the select takes when this option is chosen.