Module: alfresco/menus/AlfCheckableMenuItem

alfresco/menus/AlfCheckableMenuItem

This is an extension of the standard menu item where the
menu item has on and off toggle state represented by a check mark. The menu items can be placed in a group
so that only one item within the group can be checked at a time or can be used as individual items for toggling
things on or off. Each time the a menu item is actioned it will publish on the configured topic and the payload
will include a "selected" attribute indicating whether or not the item has been toggled to the on or off state.
Items can be grouped by simply assigning multiple items with the same
group value. The other items in the group will automatically
be toggled to the off state when another item is toggled to the on state.

cssRequirements :object[]

Type:

group :string

If this is set then it indicates that this item is a member of a group. When in a group this cannot be unselected. Unselection
will only occur when another item in the group is selected. Setting this attribute to anything other than null makes this
item behave as though it were a member of a radio button group.

Type:

hashName :string

If this instance should be set according to a hash fragment value then this attribute should be
set to the name of the fragment parameter to use. If the hash fragment parameter exists and its
value matches the current value then this will automatically be checked.