Type Alias: AdwSplitButtonProps
AdwSplitButtonProps =
WidgetProps&object
Defined in: generated/jsx.ts:8876
Props for the AdwSplitButton widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
actionName? | string | The name of the action with which this widget should be associated. | generated/jsx.ts:8953 |
actionTarget? | GLib.Variant | The target value of the actionable widget's action. | generated/jsx.ts:8955 |
canShrink? | boolean | Whether 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 | null | The 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.ArrowType | The 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? | string | The tooltip of the dropdown button. The tooltip can be marked up with the Pango text markup language. | generated/jsx.ts:8909 |
iconName? | string | null | The 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 | null | The label for the button. Setting the label will set AdwSplitButton.icon-name and AdwSplitButton.child to NULL. | generated/jsx.ts:8923 |
menuModel? | Gio.MenuModel | null | The 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 | null | Emitted 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 | null | Emitted when the button has been activated (pressed and released). | generated/jsx.ts:8964 |
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:8971 |
popover? | Gtk.Popover | null | The 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? | boolean | Whether an underline in the text indicates a mnemonic. See AdwSplitButton.label. | generated/jsx.ts:8951 |