Function to be triggered when the marker or command is selected
OptionaliconOptional name of icon to use instead of the marker
OptionalisWhether the command/marker is deprecated. Deprecated items stay visible in the menu (even when the search query is empty) but are rendered disabled so they cannot be selected.
OptionalisWhether the consumer currently has no operation for this row, so it must not be selectable. Optional and additive — with no value the row is selectable exactly as it has always been.
Unlike MarkerMenuItem.isDeprecated and MarkerMenuItem.isDisallowed, this says nothing about the marker itself and so renders no trailing label: those two describe a property of the marker, while this describes the consumer's momentary inability to act on it. It also does not affect visibility — the row stays listed, because a row that disappears reads as "this marker does not exist here" rather than "you cannot do that to it right now."
OptionalisWhether the command/marker is disallowed for this project (e.g. blocked while structure is protected). Unlike MarkerMenuItem.isDeprecated, this flag affects visibility as well as selectability: while the search query is empty, disallowed items are hidden if any allowed items exist (to reduce clutter) but are shown when every item is disallowed (so the menu isn't empty). A non-empty query reveals a disallowed item only on an exact marker-code match or a title match. Whenever a disallowed item is shown it is rendered disabled so it cannot be selected.
OptionalmarkerIf the item is a marker, then this is the marker code
OptionalselectionHow much of the consumer's current selection this marker covers: 'all', 'partial', or
'none'. Optional and additive — with no value, no selection affordance renders and no
aria-checked is set, which is how consumers that do not track a selection behave.
Unlike MarkerMenuItem.isDeprecated and MarkerMenuItem.isDisallowed, this affects neither visibility nor selectability. It is display only.
OptionalsubtitleAn optional subtitle for the marker
The main title for the marker or command
Type for the markers that contain all necessary information to be displayed in the list