MCPcopy Create free account
hub / github.com/microsoft/SandDance / canAnyMenuItemsCheck

Function canAnyMenuItemsCheck

docs/app/js/sanddance-app.js:29279–29288  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

29277 }
29278}
29279function canAnyMenuItemsCheck(items) {
29280 return items.some(function(item) {
29281 if (item.canCheck) return true;
29282 // If the item is a section, check if any of the items in the section can check.
29283 if (item.sectionProps && item.sectionProps.items.some(function(submenuItem) {
29284 return submenuItem.canCheck === true;
29285 })) return true;
29286 return false;
29287 });
29288}
29289var NavigationIdleDelay = 250; /* ms */
29290var COMPONENT_NAME = "ContextualMenu";
29291var _getMenuItemStylesFunction = (0, _utilities.memoizeFunction)(function() {

Callers 1

sanddance-app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected