Skip to main content

Type Alias: AdwSplitButtonProps

AdwSplitButtonProps = WidgetProps & object

Defined in: generated/jsx.ts:7176

Props for the AdwSplitButton widget.

Type Declaration

NameTypeDescriptionDefined in
actionName?stringThe name of the action with which this widget should be associated.generated/jsx.ts:7253
actionTarget?GLib.VariantThe target value of the actionable widget's action.generated/jsx.ts:7255
canShrink?booleanWhether the button can be smaller than the natural size of its contents. If set to TRUE, the label will ellipsize. See Button.can-shrink and MenuButton.can-shrink.generated/jsx.ts:7185
child?Gtk.Widget | nullThe child widget. Setting the child widget will set AdwSplitButton.label and AdwSplitButton.icon-name to NULL.generated/jsx.ts:7192
children?ReactNode-generated/jsx.ts:7265
direction?Gtk.ArrowTypeThe direction in which the popup will be popped up. The dropdown arrow icon will point at the same direction. If the does not fit in the available space in the given direction, GTK will try its best to keep it inside the screen and fully visible. If you pass GTK_ARROW_NONE, it's equivalent to GTK_ARROW_DOWN.generated/jsx.ts:7203
dropdownTooltip?stringThe tooltip of the dropdown button. The tooltip can be marked up with the Pango text markup language.generated/jsx.ts:7209
iconName?string | nullThe name of the icon used to automatically populate the button. Setting the icon name will set AdwSplitButton.label and AdwSplitButton.child to NULL.generated/jsx.ts:7216
label?string | nullThe label for the button. Setting the label will set AdwSplitButton.icon-name and AdwSplitButton.child to NULL.generated/jsx.ts:7223
menuModel?Gio.MenuModel | nullThe GMenuModel from which the popup will be created. If the menu model is NULL, the dropdown is disabled. A Popover will be created from the menu model with PopoverMenu.new_from_model. Actions will be connected as documented for this function. If AdwSplitButton.popover is already set, it will be dissociated from the button, and the property is set to NULL.generated/jsx.ts:7236
onActivate?(self) => void | nullEmitted to animate press then release. This is an action signal. Applications should never connect to this signal, but use the AdwSplitButton.:clicked signal.generated/jsx.ts:7262
onClicked?(self) => void | nullEmitted when the button has been activated (pressed and released).generated/jsx.ts:7264
popover?Gtk.Popover | nullThe GtkPopover that will be popped up when the dropdown is clicked. If the popover is NULL, the dropdown is disabled. If AdwSplitButton.menu-model is set, the menu model is dissociated from the button, and the property is set to NULL.generated/jsx.ts:7245
ref?Ref<Adw.SplitButton>-generated/jsx.ts:7266
useUnderline?booleanWhether an underline in the text indicates a mnemonic. See AdwSplitButton.label.generated/jsx.ts:7251