MenuItem::Role

Preset defaults for common menu items.

TypeString

For common menu items like Copy and Paste, manually implementing them for all platforms is very boring work. You can instead specify a role for a menu item, and Yue will automatically set labels, accelerators and actions for the menu item.

This type can have following values: