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

backbone-childs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-childs

Extended backbone view with support for child views

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by13.33%
Maintainers
1
Weekly downloads
 
Created
Source

backbone-childs

Extends the default Backbone view with support for subviews (aka child views). It uses backbone-viewj (backbone view with jbone) and doesn't need jQuery nor Zepto as dependecy.

Features

  • ordering: (optiona) add this attribute to your view for custom ordering (otherwise it will order after your key)
  • key access : views are saved in a dictionary

renderSubviews

call this command in your render function to render all subviews.

addView(view,key)

adds a view with key. If you don't have a ordering attribute it will set your key as ordering attribute.

getView (key)

gets the view with key.

removeView (key)

removes the view with key.

removeViews()

destroys all child views.

remove()

destroys this view

Keywords

FAQs

Package last updated on 17 Nov 2014

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