A flexible UI Drawer that can be used on any block element.
Using bower:
bower install backbone.ui.drawer
- Backbone
- Underscore
- jQuery (or alternative event handler)
var view = new Backbone.UI.Drawer({
el : ".main"
});
view.render();
A more detailed list of all the available options.
contentEl: ".content", /contentMove: false,/ contentMove: "displace",
- contentEl: An optional HTML element that the drawer should interact with. - default: false
- contentMove: If a contentEl has been set, the type of interaction the should occur - default: false . Example displace - moves the content in sync with the drawer
Initiated by Lyndel Thomas ( @ryndel )
Distributed through Makesites.org
Released under the MIT license