backbone-tree
A node module providing mixins, model and collection which may help working with tree structures.
More info soon...
Installation
npm install backbone-combobox --save
Usage
var Combobox = require('backbone-combobox');
var model = new Combobox.Model();
model.setData([
{id: '1', text: 'Main'},
{id: '1.0', text: 'Subelement', parentId: '1'},
{id: '1.1', text: 'Subelement', parendId: '1'}
]);
model.set('selectedId', '1.1');
var new Combobox.View({
model: model
});
$('#combobox-target').empty().append(this.view.render().el);
Contributing
Please use mversion (npm install -g mversion
) to bump version numbers.
Release History