TabBarItem
This struct describes an item of a combo box.
Fields
prefix_icon
(image): Defines icon that is displayed in the front of the item.text
(string): Defines the content of the item. (default: "")closeable
(bool): If set to true a close button will be displayed. (default: false)
TabBarItemStyle
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.icon_style
(IconStyle): Defines the style of the item's icon.
TabBarStyle
Defines the visual settings of a combo box.
Fields
item_style
(TabBarItemStyle
): Defines style of the combo box items.
TabBarBase
The TabBarBase
represents the base for a tab bar component.
Properties
enabled
(in bool): If set tofalse
the combo box is disabled.model
(in [TabBarItem
]): The list of possible values.current_index
(in_out int): The index of the selected value. (default: -1)style
(in TabBarStyle): 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.close(/* index */ int)
: If called it indicates the the item on the given index should be closed.