Skip to main content

Type Alias: AdwSplitButtonProps

AdwSplitButtonProps = WidgetProps & object

Defined in: generated/jsx.ts:8876

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:8953
actionTarget?GLib.VariantThe target value of the actionable widget's action.generated/jsx.ts:8955
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:8885
child?Gtk.Widget | nullThe child widget. Setting the child widget will set AdwSplitButton.label and AdwSplitButton.icon-name to NULL.generated/jsx.ts:8892
children?ReactNode-generated/jsx.ts:8965
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:8903
dropdownTooltip?stringThe tooltip of the dropdown button. The tooltip can be marked up with the Pango text markup language.generated/jsx.ts:8909
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:8916
label?string | nullThe label for the button. Setting the label will set AdwSplitButton.icon-name and AdwSplitButton.child to NULL.generated/jsx.ts:8923
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:8936
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:8962
onClicked()?(self) => void | nullEmitted when the button has been activated (pressed and released).generated/jsx.ts:8964
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:8971
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:8945
ref?Ref<Adw.SplitButton>-generated/jsx.ts:8988
useUnderline?booleanWhether an underline in the text indicates a mnemonic. See AdwSplitButton.label.generated/jsx.ts:8951