Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 831 Bytes

File metadata and controls

35 lines (23 loc) · 831 Bytes

Swapper

A simple list-swapper for Elm.

Features

  • Give it a list
  • Swap items between two sides

Styling

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.

Usage

Heads up: this package isn't published yet!

Install from the package repository:

$ elm install sli/swapper

Check out the basic example.