Class: module:view/page

module:view/page()

Root view of page

Constructor

new module:view/page()

Source:
Example
class DetailPage extends Page {
  title() {
    return 'Detail Page'
  }

  html(data) {
    return `\
    <div>
      <h1>${data.headline}</h1>
    </div>
    `
  }
}

Members

hasInitData :boolean

Whether having initial data or not
Type:
  • boolean
Source:

hasInitData :boolean

Whether having initial data or not
Type:
  • boolean
Source:

Methods

destroy()

Source:

destroy()

Source:

title()

Return document title
Source:

title()

Return document title
Source:

module:view/page()

Root view of page

Constructor

new module:view/page()

Source:
Example
class DetailPage extends Page {
  title() {
    return 'Detail Page'
  }

  html(data) {
    return `\
    <div>
      <h1>${data.headline}</h1>
    </div>
    `
  }
}

Members

hasInitData :boolean

Whether having initial data or not
Type:
  • boolean
Source:

hasInitData :boolean

Whether having initial data or not
Type:
  • boolean
Source:

Methods

destroy()

Source:

destroy()

Source:

title()

Return document title
Source:

title()

Return document title
Source: