ComboRow
A class@Gtk.ListBoxRow used to choose from a list of items.
The AdwComboRow
widget allows the user to choose from a list of valid choices. The row displays the selected choice. When activated, the row displays a popover which allows the user to make a new choice.
Example of an AdwComboRow
UI definition:
<object class="AdwComboRow">
<property name="title" translatable="yes">Combo Row</property>
<property name="model">
<object class="GtkStringList">
<items>
<item translatable="yes">Foo</item>
<item translatable="yes">Bar</item>
<item translatable="yes">Baz</item>
</items>
</object>
</property>
</object>
The property@ComboRow:selected and property@ComboRow:selected-item properties can be used to keep track of the selected item and react to their changes.
AdwComboRow
mirrors class@Gtk.DropDown, see that widget for details.
AdwComboRow
is property@Gtk.ListBoxRow:activatable if a model is set.
CSS nodes
AdwComboRow
has a main CSS node with name row
and the .combo
style class.
Its popover has the node named popover
with the .menu
style class, it contains a class@Gtk.ScrolledWindow, which in turn contains a class@Gtk.ListView, both are accessible via their regular nodes.
Accessibility
AdwComboRow
uses the GTK_ACCESSIBLE_ROLE_COMBO_BOX
role.
Constructors
Properties
The widget to activate when the row is activated.
Whether to show a search entry in the popup.
An expression used to obtain strings from items.
The factory for creating header widgets for the popup.
The factory for populating list items in the popup.
The match mode for the search filter.
The selected item.
The number of lines at the end of which the subtitle label will be ellipsized.
Whether the user can copy the subtitle from the label.
The number of lines at the end of which the title label will be ellipsized.
Whether the user can copy the title from the label.
Whether to use the current value as the subtitle.
Whether an embedded underline in the title indicates a mnemonic.
Functions
This signal is emitted after the row has been activated.
Gets the widget activated when @self is activated.
Gets whether search is enabled.
Gets the expression used to obtain strings from items.
Gets the factory for populating list items.
Gets the factory that's currently used to create header widgets for the popup.
Gets the icon name for @self.
Gets the factory for populating list items in the popup.
Returns the match mode that the search filter is using.
Gets the position of the selected item.
Gets the selected item.
Gets the subtitle for @self.
Gets the number of lines at the end of which the subtitle label will be ellipsized.
Gets whether the user can copy the subtitle from the label
Gets the number of lines at the end of which the title label will be ellipsized.
Gets whether the user can copy the title from the label
Gets whether to use Pango markup for the title label.
Gets whether to use the current value as the subtitle.
Gets whether an embedded underline in the title indicates a mnemonic.
Sets the widget to activate when @self is activated.
Sets whether to enable search.
Sets the expression used to obtain strings from items.
Sets the factory for populating list items.
Sets the factory to use for creating header widgets for the popup.
Sets the icon name for @self.
Sets the factory for populating list items in the popup.
Sets the match mode for the search filter.
Selects the item at the given position.
Sets the subtitle for @self.
Sets the number of lines at the end of which the subtitle label will be ellipsized.
Sets whether the user can copy the subtitle from the label
Sets the number of lines at the end of which the title label will be ellipsized.
Sets whether the user can copy the title from the label
Sets whether to use Pango markup for the title label.
Sets whether to use the current value as the subtitle.
Sets whether an embedded underline in the title indicates a mnemonic.