Class: DirtyBasePage

js-whatever/js/dirty-base-page. DirtyBasePage

<abstract> new DirtyBasePage()

A version of BasePage which tracks dirty state. Call the renderIfVisible to
render the view only if it is visible, otherwise a dirty flag will be set to true and the view rendered at a
later date

Source:

Extends

Methods

<abstract> dirtyRender()

Default implementation of dirtyRender, which just calls render

Source:

<abstract> getSelectedRoute()

Called when navigating to a page. If a page has state which can be represented by a route, this route
should be returned. The default implementation is a no-op.

Inherited From:
Source:

hide()

Hides the page

Inherited From:
Source:

renderIfVisible()

Calls the render method if the page isVisible, otherwise sets the dirty flag to true

Source:

setDirty(dirty)

Sets the state of the dirty flag

Parameters:
Name Type Description
dirty boolean
Source:

show()

Shows the page and calls the update method

Inherited From:
Source:

update()

If the dirty flag is true, call dirtyRender

Source:
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.