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
| Name | Type | Default | Description |
|---|---|---|---|
| Text | string | ||
| Icon | Icon? | ||
| Shortcut | Shortcut? | Its keys show right-aligned, and pressing them activates the item. | |
| Enabled | boolean | ||
| Checked | boolean? | nil leaves out the check column. |
Events
| Name | Passes | Description |
|---|---|---|
| Activated | () |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
