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

Function getIsChecked

docs/app/js/sanddance-app.js:31022–31028  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

31020parcelHelpers.export(exports, "isItemDisabled", ()=>isItemDisabled);
31021parcelHelpers.export(exports, "getMenuItemAriaRole", ()=>getMenuItemAriaRole);
31022function getIsChecked(item) {
31023 if (item.canCheck) return !!(item.isChecked || item.checked);
31024 if (typeof item.isChecked === "boolean") return item.isChecked;
31025 if (typeof item.checked === "boolean") return item.checked;
31026 // Item is not checkable.
31027 return null;
31028}
31029function hasSubmenu(item) {
31030 // eslint-disable-next-line deprecation/deprecation
31031 return !!(item.subMenuProps || item.items);

Callers 1

getMenuItemAriaRoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected