SplitButton.menuModel

gio.menu_model.MenuModel menuModel() @property

Get menuModel property.

Returns

The gio.menu_model.MenuModel from which the popup will be created.

If the menu model is NULL, the dropdown is disabled.

A gtk.popover.Popover will be created from the menu model with gtk.popover_menu.PopoverMenu.newFromModel. Actions will be connected as documented for this function.

If adw.split_button.SplitButton.popover is already set, it will be dissociated from the button, and the property is set to NULL.

void menuModel(gio.menu_model.MenuModel propval) @property

Set menuModel property.

Parameters

propvalThe gio.menu_model.MenuModel from which the popup will be created. If the menu model is NULL, the dropdown is disabled. A gtk.popover.Popover will be created from the menu model with gtk.popover_menu.PopoverMenu.newFromModel. Actions will be connected as documented for this function. If adw.split_button.SplitButton.popover is already set, it will be dissociated from the button, and the property is set to NULL.