backbone.picky icon indicating copy to clipboard operation
backbone.picky copied to clipboard

selectable entities as mixins for Backbone.Model and Backbone.Collection

Results 22 backbone.picky issues
Sort by recently updated
recently updated
newest added

This will allow this module to be used with browserify builds and other commonjs environments that rely on package.json to resolve the main file.

Picky triggers `this.trigger("selected", this);` on the model but the example listened for `select`, just changed the readme to reflect this

The `selected` model event is triggered too early, before the associated collection has been updated to reflect the new selection. For details, see #18. This issue is just a reminder...

With this (minor) change, Picky mixins can be applied with a single statement: ``` SelectableModel = Backbone.Model.extend({ initialize: function(){ Backbone.Picky.Selectable.applyTo(this); } }); ``` SingleSelect and MultiSelect mixins work along the...

If a selectable model belongs to more than one selectable collection then only the initial collection will have it's select() method called. Also, if a model is initially added to...

I added support to limit the number of selections that can be made in a MultiSelect. Not sure if this is useful to anyone else, but here goes.

This PR provides additional info to event handlers. _SingleSelect events_ now pass the collection as the second parameter. The collection info is required by event handlers listening to more than...

we trigger a selected event and not a select event.

This is a duplicate of #16, but for some reason the last commits of my PR didn't show up there. BTW, a `silent` option is also part of the PR.