0.3.0 • Published 5 years ago

@kanety/jquery-simple-selstore v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jquery-simple-selstore

A jquery plugin for multiple selection that stores selected items in storage.

Dependencies

  • jquery

Installation

Install from npm:

$ npm install @kanety/jquery-simple-selstore --save

Usage

Build html as follows:

<div id="selector">
  <div><label><input type="checkbox" value="1">title1</label></div>
  <div><label><input type="checkbox" value="2">title2</label></div>
</div>
<div id="listview"></div>

Then run:

$('#listview').simpleSelstore('#selector');

Options

Store selected elements in the web storage:

$('#listview').simpleSelstore('#selector', {
  store: 'session',  // or 'local'
  storeKey: 'YOUR_STORE_KEY'
});

License

The library is available as open source under the terms of the MIT License.

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago