Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
bootstrap-tokenfield
Advanced tools
Advanced tagging/tokenizing plugin for input fields with a focus on keyboard and copy-paste support.
![NPM version][npm-badge] ![Build status][travis-badge] [npm-badge]: https://badge.fury.io/js/bootstrap-tokenfield.png [travis-badge]: https://travis-ci.org/sliptree/bootstrap-tokenfield.png?branch=master
A jQuery tagging / tokenizer input plugin for Twitter's Bootstrap, by the guys from Sliptree
Check out the demo and docs
Requirements: jQuery 1.9+, Bootstrap 3+ (only CSS)
dist/bootstrap-tokenfield.js
or dist/bootstrap-tokenfield.min.js
in your HTMLdist/css/bootstrap-tokenfield.css
in your HTML$('input').tokenfield()
You can use the tokenfield:createtoken
event for that. Check the event.attrs
property for token value and label,
and the run your duplicate detection logic. If it's a duplicate token, simply do event.preventDefault()
.
Here's a simple example that checks if token's value is equal to any of the existing tokens' values.
$('#my-tokenfield').on('tokenfield:createtoken', function (event) {
var existingTokens = $(this).tokenfield('getTokens');
$.each(existingTokens, function(index, token) {
if (token.value === event.attrs.value)
event.preventDefault();
});
});
See release notes
Previous releases:
0.10.0
autocomplete="off"
to prevent browser-specific autocomplete suggestionstriggerKeys
has been renamed to delimiter
and accepts a single or an array of characters instead of character codes.0.9.9-1
triggerKeys
option0.9.8
triggerKeys
option0.9.7 Valuable
prevetDuplicateToken
event0.9.5 Typeable
0.9.2 Maintenance release
0.9.0 Bootstrappable
0.7.1
0.7.0 Autocompleted
0.6.7 Crossable
0.6.5 Shiftable
0.6 Editable
0.5 Initial release
FAQs
Advanced tagging/tokenizing plugin for input fields with a focus on keyboard and copy-paste support.
The npm package bootstrap-tokenfield receives a total of 36,237 weekly downloads. As such, bootstrap-tokenfield popularity was classified as popular.
We found that bootstrap-tokenfield demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.