Skip to main content

Type Alias: GtkMenuButtonProps

GtkMenuButtonProps = WidgetProps & object

Defined in: generated/jsx.ts:6403

Props for the GtkMenuButton widget.

Type Declaration

NameTypeDescriptionDefined in
active?booleanWhether the menu button is active.generated/jsx.ts:6405
alwaysShowArrow?booleanWhether to show a dropdown arrow even when using an icon or a custom child.generated/jsx.ts:6407
canShrink?booleanWhether the size of the button can be made smaller than the natural size of its contents.generated/jsx.ts:6412
child?Gtk.Widget | nullThe child widget.generated/jsx.ts:6414
children?ReactNode-generated/jsx.ts:6450
direction?Gtk.ArrowTypeThe GtkArrowType representing the direction in which the menu or popover will be popped out.generated/jsx.ts:6419
hasFrame?booleanWhether the button has a frame.generated/jsx.ts:6421
iconName?string | nullThe name of the icon used to automatically populate the button.generated/jsx.ts:6423
label?string | nullThe label for the button.generated/jsx.ts:6425
menuModel?Gio.MenuModel | nullThe 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 | nullEmitted 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 | 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:6456
popover?Gtk.Popover | nullThe GtkPopover that will be popped up when the button is clicked.generated/jsx.ts:6434
primary?booleanWhether the menu button acts as a primary menu. Primary menus can be opened using the F10 keygenerated/jsx.ts:6440
ref?Ref<Gtk.MenuButton>-generated/jsx.ts:6474
useUnderline?booleanIf set an underscore in the text indicates a mnemonic.generated/jsx.ts:6442