ComboBoxBase
On this page
PopupPosition
The enum describes the position of a popup.
Values
top: the popup is placed on the top.bottom: the popup is placed on the bottom.
ComboBoxItem
This struct describes an item of a combo box.
Fields
text(text): The content of the item. (default: "")
ComboBoxItemStyle
Defines the visual settings of a combo box item.
Fields
border_style(BorderStyle): Defines the style of the background border.text_style(TextStyle): Defines the style of the item's text.layout_style(LayoutStyle): Defines the style of the layout.
ComboBoxStyle
Defines the visual settings of a combo box.
Fields
border_style(BorderStyle): Defines the style of the background border.icon_style(IconStyle): Defines the style of the dropdown icon.text_style(TextStyle): Defines the style of the current value text.placeholder_style(TextStyle): Defines the style of the placeholder text.padding_left(length): Defines the padding on the left side of the combo box layout. (default value: 0)padding_right(length): Defines the padding on the right side of the combo box layout. (default value: 0)padding_top(length): Defines the padding on the top side of the combo box layout. (default value: 0)padding_bottom(length): Defines the padding on the bottom side of the combo box layout. (default value: 0)spacing(length): Defines the distance between elements in the combo box layout. (default value: 0)item_style(ComboBoxItemStyle): Defines style of the combo box items.popup_border_style(BorderStyle): Defines the background of the popup border.
ComboBoxBase
The ComboBoxBase represents the base for a combobox component.
Properties
enabled(in bool): If set tofalsethe combo box is disabled.model(in [ComboBoxItem]): The list of possible values.current_index(in_out int): The index of the selected value. (default: -1)current_value(inComboBoxItem): The currently selected item.placeholder_text(in string): A placeholder text being shown when there is no text in the combo box.popup_position(inPopupPosition): Defines the position of the popup. (default: bottom)style(in ComboBoxStyle): Defines the style of the combo box.
Callbacks
selected(/* index */ int): A value was selected from the combo box. The argument is the currently selected value.