MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / Page

Function Page

src/components/page.js:11–25  ·  view source on GitHub ↗

* * @param {string} title * @param {object} options * @param {HTMLElement} [options.lead] type of page * @param {HTMLElement} [options.tail] type of page * @returns {WCPage}

(title, options = {})

Source from the content-addressed store, hash-verified

9 * @returns {WCPage}
10 */
11function Page(title, options = {}) {
12 let page = <wc-page />;
13 page.append = page.appendBody;
14 page.initializeIfNotAlreadyInitialized();
15 page.settitle(title);
16
17 if (options.tail) {
18 page.header.append(options.tail);
19 }
20 if (options.lead) {
21 page.lead = options.lead;
22 }
23
24 return page;
25}
26
27export default Page;

Callers 15

settingsPage.jsFile · 0.85
QuickToolsFunction · 0.85
fontManager.jsFile · 0.85
PluginIncludeFunction · 0.85
customTheme.jsFile · 0.85
openAdRewardsPageFunction · 0.85
ProblemsFunction · 0.85
createMarkdownPreviewFunction · 0.85
AboutIncludeFunction · 0.85
PluginsIncludeFunction · 0.85
ChangelogFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected