Socket
Socket
Sign inDemoInstall

backbone-childs

Package Overview
Dependencies
5
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    backbone-childs

Extended backbone view with support for child views


Version published
Weekly downloads
2K
decreased by-23.01%
Maintainers
1
Install size
1.54 MB
Created
Weekly downloads
 

Readme

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

Last updated on 17 Nov 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc