Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanety/jquery-simple-selstore
https://github.com/kanety/jquery-simple-selstore
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanety/jquery-simple-selstore
- Owner: kanety
- License: mit
- Created: 2019-02-17T08:58:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T05:09:55.000Z (about 5 years ago)
- Last Synced: 2024-12-04T22:27:38.279Z (about 1 month ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```html
title1
title2
```Then run:
```javascript
$('#listview').simpleSelstore('#selector');
```### Options
Store selected elements in the web storage:
```javascript
$('#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](http://opensource.org/licenses/MIT).