harvard-lil/stackview — Issue #5: Expand API
Author: imakewebthings
Created: 2012-02-23 10:43:13+00:00
State: open

What methods and events would be nice additions to Stack View?

Current methods:

- next_page
- prev_page

Current events (emitted from the stack element):

stackview.init - once on stack creation but before the first page load.
stackview.pageload - once at the end of every page load.

I think an explicit `destroy` would be useful. The plugin previously did partial destruction on passing false to the stackView plugin method, but I'd prefer this be an explicit method.

Other ideas:

- `add`, taking an item object and optional index at which to insert, with accompanying `stackview.itemadded` event
- `remove`, taking either an index or an item object, with accompanying `stackview.itemadded` event