Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backbone-layout

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-layout

A simple layout manager for Backbone.

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Backbone.Layout

A simple layout manager for Backbone. Backbone.Layout provides easy view life cycle managment for composite views.

Build Status

API

.setView(view[, selector][, options])

  • view an instance of a Backbone view
  • selector a css selector (optional)
  • options configuration options (optional)
    • append by default, setView replaces views
    • cache cache long-running views when replacing (do not call remove or render)
    • toggle similar to cache, do not call remove or render. Instead toggles view.$el, preserving UI state such as the scroll bar.

This attaches a view to a selector. If no selector is provided, the view is attached to the layouts el. Multiple views may be attached to a single element with the append option. Long-running views may be preserved across renders and replacements with the cache option.

Development

This project uses a gulp-based build, npm for package management, and mocha, jshint and phantomjs for testing. The development source is in backbone.layout.js and tests are in spec/. `To begin devleopment:

  • npm install install packages
  • gulp starts the develpment watcher
  • gulp test executes the test suite
  • gulp build builds the production version

Keywords

FAQs

Package last updated on 20 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc