Type Alias: GtkDropDownProps
GtkDropDownProps =
WidgetProps&object
Defined in: generated/jsx.ts:3342
Props for the GtkDropDown widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:3391 |
enableSearch? | boolean | Whether to show a search entry in the popup. Note that search requires DropDown.expression to be set. | generated/jsx.ts:3349 |
expression? | Gtk.Expression | null | An 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 | null | Factory for populating list items. | generated/jsx.ts:3360 |
headerFactory? | Gtk.ListItemFactory | null | The factory for creating header widgets for the popup. | generated/jsx.ts:3362 |
listFactory? | Gtk.ListItemFactory | null | The factory for populating list items in the popup. If this is not set, DropDown.factory is used. | generated/jsx.ts:3368 |
onActivate()? | (self) => void | null | Emitted 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 | null | Called 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 | null | Called when selection changes with the selected item's ID | generated/jsx.ts:3390 |
ref? | Ref<Gtk.DropDown> | - | generated/jsx.ts:3412 |
searchMatchMode? | Gtk.StringFilterMatchMode | The match mode for the search filter. | generated/jsx.ts:3370 |
selected? | number | The 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 | null | ID of the initially selected item | generated/jsx.ts:3388 |
showArrow? | boolean | Whether to show an arrow within the GtkDropDown widget. | generated/jsx.ts:3379 |