Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Maintainers
1
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

backbone

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.