MenuItem › setActive
Unofficial
Calls
setChecked, prefer usage of that function instead.
Signature:
setActive(active: boolean): this
Parameters:
| Parameter | Type | Description |
| active | boolean | Whether the menu item should be checked. |
Returns: this — The menu item instance.