Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
org.webjars.bower:bootstrap.checkbox
Advanced tools
A checkbox component based on bootstrap framework
You can find demo and documentation here.
Create your <input type="checkbox">
with the .checkbox
class.
<input type="checkbox" class="checkbox" />
<input type="checkbox" class="checkbox" checked="checked"/>
<input type="checkbox" class="checkbox" disabled="disabled"/>
<input type="checkbox" class="checkbox" checked="checked" disabled="disabled"/>
Enable Bootstrap-checkbox via JavaScript:
$('.checkbox').checkbox();
Or just
$('input[type="checkbox"]').checkbox();
Options can be passed via data attributes or JavaScript.
$('input[type="checkbox"]').checkbox({
buttonStyle: 'btn-link',
buttonStyleChecked: 'btn-inverse',
checkedClass: 'fa fa-check',
uncheckedClass: 'fa fa-square-o',
defaultState: false,
defaultEnabled: true,
checked: false,
enabled: true
});
You can append or prepend a label via the data-label
or data-label-prepend
attribute.
You can set a default state (used when you reset a form) via the data-default-state
attribute.
You can set a default abilitation (used when you reset a form) via the data-default-enabled
attribute.
$('input[type="checkbox"]').checkbox('click'); // change input's state
$('input[type="checkbox"]').checkbox('toggleEnabled'); // change input's enabled
Copyright (C) 2013 Roberto Montresor
Licensed under the MIT license.
FAQs
WebJar for bootstrap.checkbox
We found that org.webjars.bower:bootstrap.checkbox 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.