Ractive.js chosen decorator plugin
Integrate Chosen with Ractive, including two-way binding.
Find more Ractive.js plugins at ractivejs.org/plugins
Usage
Include this file on your page below Ractive, e.g:
Or, if you're using a module loader, require this module:
// requiring the plugin will 'activate' it - no need to use the return value;
Add the decorator to your select elements:
{{#options}} {{.}} {{/options}}
Add option objects to the type
property to set chosen options:
Ractivedecoratorschosentypedemo = width: '25%' // ... other chosen options;
{{#options}} {{.}} {{/options}}
You can also use a function that returns an options object. The function is passed the DOM node the chosen applies to:
Ractivedecoratorschosentype { return width: '25%' // ... other chosen options };
License
Copyright (c) 2014 Kalcifer. Forked from Prezent Internet B.V.. Licensed MIT
Created with the Ractive.js plugin template for Grunt.