Home Reference Source
public class | source

DefaultPage

Extends:

AbstractServiceAbstractPage → DefaultPage

Constructor Summary

Public Constructor
public

Inherited Summary

From class AbstractService
public
public
public

checkDependencies(dependencies: *[])

public

getService(serviceName: *): *

public

hasService(serviceName: *): *

public

init()

From class AbstractPage
public
public

HTMLElement blocks collection.

public
public

AbstractBlock collection.

public

Page context (static or ajax)

public
public

Page id

public

Is home ?

public

Meta title

public

Node name

public
public

rootElement: HTMLElement

Container element

public

Page type

public

Destroy current page and all its blocks.

public

Destroy events

public

Get a page block instance from its id.

public

Get a page block index from its id.

public

Get the first page block instance from its type.

public

Get the first page block index from its type.

public

async init()

Initialize page.

public

async initBlocks()

Initialize page blocks on page.

public

Initialize basic events.

public

async initSingleBlock(blockElement: HTMLElement): AbstractBlock

public abstract
public

async updateBlocks()

Append new blocks which were not present at init.

Public Constructors

public constructor() source

Base constructor for Pages.

Override:

AbstractPage#constructor