Skip to main content

Type Alias: GtkDropDownProps

GtkDropDownProps = WidgetProps & object

Defined in: generated/jsx.ts:2735

Props for the GtkDropDown widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:2784
enableSearch?booleanWhether to show a search entry in the popup. Note that search requires DropDown.expression to be set.generated/jsx.ts:2742
expression?Gtk.Expression | nullAn expression to evaluate to obtain strings to match against the search term. See DropDown.enable-search for how to enable search. If DropDown.factory is not set, the expression is also used to bind strings to labels produced by a default factory.generated/jsx.ts:2751
factory?Gtk.ListItemFactory | nullFactory for populating list items.generated/jsx.ts:2753
headerFactory?Gtk.ListItemFactory | nullThe factory for creating header widgets for the popup.generated/jsx.ts:2755
listFactory?Gtk.ListItemFactory | nullThe factory for populating list items in the popup. If this is not set, DropDown.factory is used.generated/jsx.ts:2761
onActivate?(self) => void | nullEmitted to when the drop down is activated. The ::activate signal on GtkDropDown is an action signal and emitting it causes the drop down to pop up its dropdown.generated/jsx.ts:2779
onSelectionChanged?(id) => void | nullCalled when selection changes with the selected item's IDgenerated/jsx.ts:2783
ref?Ref<Gtk.DropDown>-generated/jsx.ts:2785
searchMatchMode?Gtk.StringFilterMatchModeThe match mode for the search filter.generated/jsx.ts:2763
selected?numberThe position of the selected item. If no item is selected, the property has the value %GTK_INVALID_LIST_POSITION.generated/jsx.ts:2770
selectedId?string | nullID of the initially selected itemgenerated/jsx.ts:2781
showArrow?booleanWhether to show an arrow within the GtkDropDown widget.generated/jsx.ts:2772