MenuItem

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

Up and coming

One entry of a Menu, with its text, an icon, a check mark and the keys of its Shortcut.

A Menu's ShowAsync returns the item that was picked. Give it a Shortcut and the keys show right-aligned and activate it, so a menu entry and its keys are one route. Leave Checked nil for no check column.

Made with Instance.new("MenuItem") or Clone().

Properties

NameTypeDefaultDescription
Textstring
IconIcon?
ShortcutShortcut?Its keys show right-aligned, and pressing them activates the item.
Enabledboolean
Checkedboolean?nil leaves out the check column.

Events

NamePassesDescription
Activated()
From ShotInstance 33