
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
hpv-checklist
Advanced tools
Hyper Parametrizable Vanilla checklist, the best independent checkbox selection tool.
Design to offer flexibility across all environments with no dependecies. Hpv-Checklist is a First Class solution for webapps checkbox lists. Unlike other options, it is not tied to a select or floating UI. It is very small (~8Kb) and customizable through a wide range of options.
Need extra help? Have a look at the examples folder. Fill an issue if necessary.





This package can be installed with:
npm install --save hpv-checklistOr download the latest release.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hpv-checklist@1.0.0/dist/css/all.css">
<script src="https://cdn.jsdelivr.net/npm/hpv-checklist@1.0.0/dist/js/all.min.js"></script>
Be sure to call the Hpv once your menu element is available in the DOM.
<div id="myFirstCheckList" />
document.addEventListener('DOMContentLoaded', function() {
const checklist1 = new HpvCheckList('checklist1', {
searchPlaceholder: "Buscar por...",
selectAllMainText: "Selec. Todos VisĂveis",
selectAllGroupText: "Selec. Grupo",
clearSearchTooltip: "Limpar a Busca",
emptyText: "Nenhum item disponĂvel",
disabledText: "Este item está desabilitado",
defaultOptGroupText: "PadrĂŁo",
selectMode: 'multiple', // 'single' or 'multiple'
states: [0, 1, 2, 3, 4],
onSelect: (checkList, id, changedItem) => console.log('Selected:', id, changedItem),
onDeselect: (checkList, id, changedItem) => console.log('Deselected:', id, changedItem),
onSelectGroup: (checkList, groupName, group, changedItems) => console.log('Selected group:', groupName, changedItems),
onDeselectGroup: (checkList, groupName, group, changedItems) => console.log('Deselected group:', groupName, changedItems),
onCollapseGroup: (checkList, groupName, group, changedItems) => console.log('Collapsed group:', groupName, group, changedItems),
onExpandGroup: (checkList, groupName, group, changedItems) => console.log('Expanded group:', groupName, group, changedItems),
onSelectAll: (checkList, changedItems) => console.log('Selected all:', changedItems),
onDeselectAll: (checkList, changedItems) => console.log('Deselected all:', changedItems),
onLocalSearchResult: (searchTerm) => console.log('Search completed for term:', searchTerm),
onSearchInputDelay: (searchTerm) => console.log('Delayed search for:', searchTerm),
onClearSearch: () => console.log('Search cleared'),
fieldMap: {
keyField: 'id',
labelField: 'label',
valueField: 'value',
optgroupField: 'optgroup',
disabledField: 'disabled',
},
});
const items = [
{ id: 1, label: 'Apple', optgroup: 'Fruits', value: 1 },
{ id: 2, label: 'Banana', optgroup: 'Fruits', disabled: true },
{ id: 3, label: 'Cherry', optgroup: 'Fruits', value: 2 },
{ id: 10, label: 'Carrot', optgroup: 'Vegetables', value: 3 },
{ id: 11, label: 'Broccoli', optgroup: 'Vegetables' },
{ id: 12, label: 'Spinach', optgroup: 'Vegetables' },
{ id: 20, label: 'Gol Gti 1.0', optgroup: 'Cars' },
{ id: 21, label: 'Fiat Palio V8', optgroup: 'Cars' },
{ id: 22, label: 'Camaro Bubblebee', optgroup: 'Cars' },
];
});
The HpvChecklist API offers a couple of methods to control component.
Register a new item entry.
checklist1.addItem({ 'id': 4, 'label': 'Abacaxi', value: 0 });
Register multiples items at once.
checklist1.addItems([
{ id: 1, label: 'Apple', optgroup: 'Fruits', value: 1 },
{ id: 2, label: 'Banana', optgroup: 'Fruits', disabled: true },
]);
Remove all items present on this instance.
checklist1.removeAllItems();
Remove an item from checklist by its ID, while displaying an beautiful transition effect.
checklist1.removeItem('1');
Clear input field value and fire filter callback.
checklist1.search.clearSearch()
Close sidebar if openned.
HpvChecklist.sidebar.close();
Perform an list filter matching desired word and fire callback.
checklist1.search.performLocalSearch('morango');
Display an user message informing that there is no items loaded in this instance.
checklist1.ui.showEmptyStatus();
Display an custom message to user.
checklist1.ui.showCustomStatus('This is a test');
Return an internal model of current selected items, not original objects.
checklist1.items.getSelectedItems()
Return an internal model of current visible items on list.
checklist1.items.getVisibleItems()
The hpv-checklist code is licensed under the Apache-2.0 licence.
FAQs
Hyper Parametrizable Vanilla checklist, the best independent checkbox selection tool.
We found that hpv-checklist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.