MCPcopy Create free account
hub / github.com/pwa-builder/PWABuilder / constructTopLevelNavString

Function constructTopLevelNavString

docs/src/sidebarGeneration.ts:70–80  ·  view source on GitHub ↗
(activeHeader: string)

Source from the content-addressed store, hash-verified

68}
69
70function constructTopLevelNavString(activeHeader: string): string {
71 var topLevelNavHTMLString: string = `\n<sl-menu>`;
72
73 for(var entry of topLevelNavEntries) {
74 topLevelNavHTMLString = topLevelNavHTMLString + constructTopLevelNavEntryString(entry, activeHeader);
75 }
76
77 topLevelNavHTMLString = topLevelNavHTMLString + `\n</sl-menu>`;
78
79 return topLevelNavHTMLString;
80}
81
82function constructTopLevelNavEntryString(entry: string[], header: string): string {
83 return `

Callers 2

writeChildMenuFunction · 0.85
writeMainMenuFunction · 0.85

Calls 1

Tested by

no test coverage detected