Skip to main content

Type Alias: GtkDropDownProps

GtkDropDownProps = WidgetProps & object

Defined in: generated/jsx.ts:3342

Props for the GtkDropDown widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:3391
enableSearch?booleanWhether to show a search entry in the popup. Note that search requires DropDown.expression to be set.generated/jsx.ts:3349
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:3358
factory?Gtk.ListItemFactory | nullFactory for populating list items.generated/jsx.ts:3360
headerFactory?Gtk.ListItemFactory | nullThe factory for creating header widgets for the popup.generated/jsx.ts:3362
listFactory?Gtk.ListItemFactory | nullThe factory for populating list items in the popup. If this is not set, DropDown.factory is used.generated/jsx.ts:3368
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:3386
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:3397
onSelectionChanged?(id) => void | nullCalled when selection changes with the selected item's IDgenerated/jsx.ts:3390
ref?Ref<Gtk.DropDown>-generated/jsx.ts:3412
searchMatchMode?Gtk.StringFilterMatchModeThe match mode for the search filter.generated/jsx.ts:3370
selected?numberThe position of the selected item. If no item is selected, the property has the value %GTK_INVALID_LIST_POSITION.generated/jsx.ts:3377
selectedId?string | nullID of the initially selected itemgenerated/jsx.ts:3388
showArrow?booleanWhether to show an arrow within the GtkDropDown widget.generated/jsx.ts:3379