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 populating list items in the popup.
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
Emits the "activated" signal. See onActivated.
Gets the subtitle for @self.
This signal is emitted after the row has been activated.
Sets the subtitle for @self.