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.
<div class="checklist">
<input type="checkbox" />Checklist item 1
</div>
<div class="checklist">
<input type="checkbox" />Checklist item 2
</div>
<div class="checklist">
<input type="checkbox" />Checklist item 3
</div>
<script type="text/javascript">
$(document).ready(function () {
var checklist = new Checklist();
checklist.iniciar();
});
</script>
List of available options
Example
var checklist = new Checklist({
historico: {
ativo: true
}
});
checklist.iniciar();
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
}
List of available methods
Just start the plugin.
Cleans the checklist state for the current prefix.