Type Alias: GtkMenuButtonProps
GtkMenuButtonProps =
WidgetProps&object
Defined in: generated/jsx.ts:6403
Props for the GtkMenuButton widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
active? | boolean | Whether the menu button is active. | generated/jsx.ts:6405 |
alwaysShowArrow? | boolean | Whether to show a dropdown arrow even when using an icon or a custom child. | generated/jsx.ts:6407 |
canShrink? | boolean | Whether the size of the button can be made smaller than the natural size of its contents. | generated/jsx.ts:6412 |
child? | Gtk.Widget | null | The child widget. | generated/jsx.ts:6414 |
children? | ReactNode | - | generated/jsx.ts:6450 |
direction? | Gtk.ArrowType | The GtkArrowType representing the direction in which the menu or popover will be popped out. | generated/jsx.ts:6419 |
hasFrame? | boolean | Whether the button has a frame. | generated/jsx.ts:6421 |
iconName? | string | null | The name of the icon used to automatically populate the button. | generated/jsx.ts:6423 |
label? | string | null | The label for the button. | generated/jsx.ts:6425 |
menuModel? | Gio.MenuModel | null | The GMenuModel from which the popup will be created. See MenuButton.set_menu_model for the interaction with the MenuButton.popover property. | generated/jsx.ts:6432 |
onActivate()? | (self) => void | null | Emitted to when the menu button is activated. The ::activate signal on GtkMenuButton is an action signal and emitting it causes the button to pop up its menu. | generated/jsx.ts:6449 |
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:6456 |
popover? | Gtk.Popover | null | The GtkPopover that will be popped up when the button is clicked. | generated/jsx.ts:6434 |
primary? | boolean | Whether the menu button acts as a primary menu. Primary menus can be opened using the F10 key | generated/jsx.ts:6440 |
ref? | Ref<Gtk.MenuButton> | - | generated/jsx.ts:6474 |
useUnderline? | boolean | If set an underscore in the text indicates a mnemonic. | generated/jsx.ts:6442 |