MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getClassMap

Function getClassMap

core/src/utils/theme.ts:32–36  ·  view source on GitHub ↗
(classes: string | string[] | undefined)

Source from the content-addressed store, hash-verified

30};
31
32export const getClassMap = (classes: string | string[] | undefined): CssClassMap => {
33 const map: CssClassMap = {};
34 getClassList(classes).forEach((c) => (map[c] = true));
35 return map;
36};
37
38const SCHEME = /^[a-z][a-z0-9+\-.]*:/;
39

Callers 15

renderCheckboxMethod · 0.90
renderRadioMethod · 0.90
renderMethod · 0.90
inputClassFunction · 0.90
buttonClassFunction · 0.90
renderCheckboxOptionsMethod · 0.90
renderRadioOptionsMethod · 0.90
renderMethod · 0.90
buttonClassFunction · 0.90
renderRadioOptionsMethod · 0.90
renderCheckboxOptionsMethod · 0.90
renderMethod · 0.90

Calls 1

getClassListFunction · 0.85

Tested by

no test coverage detected