Options
All
  • Public
  • Public/Protected
  • All
Menu

A page represents the DOM elements that create each page

Hierarchy

Index

Constructors

constructor

  • new Page(url?: string | URL, dom?: string | Document): Page
  • Parameters

    • url: string | URL = ...
    • dom: string | Document = ...

    Returns Page

Properties

app

app: IApp

The App the ManagerItem is attached to

body

body: Element

Holds the body element of each page

config

config: ICONFIG

The Config of the App the ManagerItem is attached to

data

data: string

The payload of a page request

dom

dom: Document

Holds the DOM of the current page

emitter

emitter: EventEmitter

The EventEmitter of the App the ManagerItem is attached to

head: Element

Holds the head element of each page

key

key: any

The key to where ManagerItem is stored in an AdvancedManager

manager

The AdvancedManager the ManagerItem is attached to

title

title: string

Holds the title of each page

url

url: URL

The URL of the current page

wrapper

wrapper: HTMLElement

Holds the wrapper element to be swapped out of each Page

wrapperAttr

wrapperAttr: string

Attr that identifies the wrapper

Methods

build

  • build(): Promise<void>
  • Builds the page's dom, and sets the title, head, body, and wrapper properties of the Page class

    Returns Promise<void>

install

  • install(): void
  • Run after the Manager Item has been registered

    Returns void

register

uninstall

  • uninstall(): void
  • Run before the ManagerItem has been unregistered

    Returns void

unregister

  • unregister(): void
  • Basically removes a ManagerItem, in order to recover the ManagerItem, it needs to be re-added to an AdvancedManager

    Returns void

Generated using TypeDoc