A simple list-swapper for Elm.
- Give it a list
- Swap items between two sides
Everything is given a class that can be targeted.
div.swapper
- The swapper container.swapper__available
- The available (left) multiselect.swapper__enabled
- The enabled (right) multiselect.swapper__controls
- Container for the swap controls.swapper__button
- Swap control button.swapper__button-enable
- Enable Selected button.swapper__button-disable
- Disable Selected button.swapper__button-enableall
- Enable All button.swapper__button-disableall
- Disable All button.
Heads up: this package isn't published yet!
Install from the package repository:
$ elm install sli/swapper
Check out the basic example.