Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
168 lines (132 sloc) 3.35 KB

{{ properties: { category: "api", links: { application: "/docs/api/application", templates: "/docs/api/templates" } } }}

Extends views.Base
See Also http router

The stack view is a container with many children where only one is displayed at a time. Stack views are very useful when building Single Page Applications with navigation, and often times with something such as an HTTP router.

Installation

npm install mojo-views --save-exact

state

the current state of the stack view. This property is not inheritable.

{{#example}} {{#block:"main-js"}}

{{/}} {{#block:"main-pc"}}

{{/}} {{#block:"index-js"}}

{{/}} {{/}}

states

Allows you to control the state of multiple nested stack. This property is inheritable, and usually set at the root view level.

{{#example}} {{#block:"main-js"}}

{{/}} {{#block:"main-pc"}}

{{/}} {{#block:"index-js"}}

{{/}} {{/}}