meteor-autoform-duallistbox
Adds the ability to use a transfer select to Autoform. It uses the Bootstrap Dual Listbox library.
Originally forked from the
Install
To install the package run the following command:
meteor add ecarlotti:autoform-duallistbox
Usage
{{> afQuickField name='myOption' class='input-sm' type='duallistbox' multiple='true' options=selectOptions bootstrapDualListboxOptions=bootstrapDualListBoxOptions}}
Template.x.helpers({ selectOptions: function() { return [ { label: 'Some label', value: 'Some value'}, { label: 'Some label 2', value: 'Some value2'}, ... ]; }, bootstrapDualListBoxOptions: function() { return { moveOnSelect: false, moveOnDoubleClick: true, preserveSelectionOnMove: false, showFilterInputs: true, nonSelectedFilter: '', selectedFilter: '', btnClass: 'btn-default' }; } });