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

backbone-combobox

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-combobox

Backbone Combobox component

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
increased by126.67%
Maintainers
2
Weekly downloads
 
Created
Source

backbone-combobox

Backbone based Select component.

More info soon...

Installation

  npm install backbone-combobox --save

Sample

Sample

Usage

var Combobox = require('backbone-combobox');

// create model instance, fill it with data and select item
var model = new Combobox.Model({});
model.setData([
  {id: '1', text: '1 (title specified)', title: 'Title text'},
  {id: '2', text: '2'},
  {id: '3', text: '3 (disabled)', disabled: true},
  {id: '1.1', text: '1.1', parentId: '1'},
  {id: '1.2', text: '1.2', parentId: '1'}
  // ...
]);
model.set({selectedId: '1.1'});

// create view instance and pass it model created above
var view = new Combobox.View({ model: model });

// render and append
view.render().$el.appendTo('#target');

Contributing

First of all: npm install

Then to see example use of combobox please install webpack-dev-server and then run npm run dev.

Remember to check if test still passes before commit.

Please use mversion (npm install -g mversion) to bump version numbers.

Release History

0.1.2 (03.06.2016)

  • Fixed and enabled tests under npm test

0.1.1 (03.06.2016)

  • Updated README.md
  • Added demo code
  • npm run dev for development environment
  • Changed way of including template files (tpl -> text)

0.1.0 (02.06.2016)

Initial release

Keywords

FAQs

Package last updated on 03 Jun 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