Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bootstrap-add-clear
Advanced tools
Readme
Maintainer: Gus Esquivel
Plugin Website: http://gesquive.github.io/bootstrap-add-clear
Contributers:
Stephen Korecky,
scoman81,
Steve887,
Deividy,
zarv1k,
grrizzly,
adambiggs,
Vladekk,
denisj,
starspoint
This project is a fork of Stephen Korecky's "Add Clear" project. It is meant to work as a drop-in replacement when using bootstrap.
How you acquire bootstrap-add-clear is up to you.
Install with Bower:
bower install bootstrap-add-clear
Install with NPM:
npm install bootstrap-add-clear
If you are using browserify to bundle, you will have to expose jQuery globally:
entry.js
var $ = require('jquery');
global.jQuery = $;
require('bootstrap-add-clear');
Clone the boostrap-add-clear repository:
git clone git@github.com:gesquive/bootstrap-add-clear.git
Note: bootstrap-add-clear has a dependency on jquery 1.8+ and Bootstrap 3
Option | Type | Default |
---|---|---|
closeSymbol | string | |
symbolClass | string | glyphicon glyphicon-remove-circle |
wrapperClass | string | |
top | number | 0 |
right | number | 0 |
returnFocus | boolean | true |
showOnLoad | boolean | false |
clearOnEscape | boolean | true |
hideOnBlur | boolean | false |
zindex | number | 100 |
onClear | function | null |
$("input").addClear({top : -2, right : 6});
// Example onClear option usage
$(":input").addClear({
onClear: function(){
alert("call back!");
}
});
// Example font awesome icon usage
$(":input").addClear({
symbolClass: "fa fa-times-circle"
})
FAQs
jQuery plugin for adding a clear action to the end of a bootstrap text input
The npm package bootstrap-add-clear receives a total of 553 weekly downloads. As such, bootstrap-add-clear popularity was classified as not popular.
We found that bootstrap-add-clear 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.