MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / isAllowedIonicModeValue

Function isAllowedIonicModeValue

core/src/global/ionic-global.ts:62–62  ·  view source on GitHub ↗
(elmMode: string)

Source from the content-addressed store, hash-verified

60 const isIonicElement = (elm: any) => elm.tagName?.startsWith('ION-');
61
62 const isAllowedIonicModeValue = (elmMode: string) => ['ios', 'md'].includes(elmMode);
63
64 setMode((elm: any) => {
65 while (elm) {

Callers 1

initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected