Internal
Optional
contextReadonly
idtechnical identifier.
Optional
onReadonly
sortMenu nodes are sorted in ascending order based on their sortString
.
Whether the group or submenu contains any visible children
The menu path where visibility is checked
The context matcher to use
the context to use
Rest
...args: unknown[]the command arguments, if applicable
Rest
...args: unknown[]
For most use cases, refer to MenuAction or MenuNode