3.0.2 • Published 7 years ago

stack-view v3.0.2

Weekly downloads
2
License
Apache-2.0
Repository
-
Last release
7 years ago

stack-view

Component for stacking HTML element views.

install

npm i stack-view

usage

var Stack = require('stack-view')
var html = require('bel')
var stack = Stack()
var view1 = html`<h1>1</h1>`
var view2 = html`<h1>2</h1>`
var view3 = html`<h1>3</h1>`
// pushes a view onto the stack
stack.push(view1)
// pushes another view onto the stack
stack.push(view2)
// removes the top veiw off of the stack
stack.pop()
// replaces the current stack of views with one view
stack.replace(view3)
// removes a specific view by reference
stack.remove(view3)

test

npm it

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago