A menu item could be used as a check box. The checked property denotes whether this menu item is checked. If checked, a check icon is appeared in front of the menu item.
In addition to programming the checked property, you could specify the autocheck property to be true, such that the checked property is toggled automatically when user clicks the menu item.
<menuitem label="" autocheck="true"/>