Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josenicomaia/jquery.checklist
jQuery checklist
https://github.com/josenicomaia/jquery.checklist
checklist jquery
Last synced: 17 days ago
JSON representation
jQuery checklist
- Host: GitHub
- URL: https://github.com/josenicomaia/jquery.checklist
- Owner: josenicomaia
- Created: 2017-04-18T04:05:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T04:35:34.000Z (almost 8 years ago)
- Last Synced: 2024-11-08T17:57:14.557Z (2 months ago)
- Topics: checklist, jquery
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple jQuery Checklist
This plugin just control the strikethrough and state for each checklist item.
There is no predefined HTML or CSS. You should create your own CSS.![image](https://cloud.githubusercontent.com/assets/1703754/25114691/eddee7a4-23d6-11e7-9edb-00ddecea19b3.png)
## Use
```html
Checklist item 1
Checklist item 2
Checklist item 3
$(document).ready(function () {
var checklist = new Checklist();
checklist.iniciar();
});
```## Options
List of available optionsExample
```javascript
var checklist = new Checklist({
historico: {
ativo: true
}
});
checklist.iniciar();
```### Defaults
```javascript
debug: false, // Just print some debug messages
seletor: '.checklist', // Selector to find each checklist item
historico: {
ativo: false, // Saves the checklist state in the LocalStorage. When enabled it will load the previous state.
prefixoLocalStorage: '' // LocalStorage prefix
}
```## Methods
List of available methods### iniciar()
Just start the plugin.### limparHistoricoDoPrefixo()
Cleans the checklist state for the current prefix.