bootstrap-add-clear

WebJar for bootstrap-add-clear

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

bootstrap-add-clear
Last Version

Last Version

1.0.7
Release Date

Release Date

Type

Type

jar
Description

Description

bootstrap-add-clear
WebJar for bootstrap-add-clear
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/gesquive/bootstrap-add-clear

Download bootstrap-add-clear

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/bootstrap-add-clear/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>bootstrap-add-clear</artifactId>
    <version>1.0.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/bootstrap-add-clear/
implementation 'org.webjars.npm:bootstrap-add-clear:1.0.7'
// https://jarcasting.com/artifacts/org.webjars.npm/bootstrap-add-clear/
implementation ("org.webjars.npm:bootstrap-add-clear:1.0.7")
'org.webjars.npm:bootstrap-add-clear:jar:1.0.7'
<dependency org="org.webjars.npm" name="bootstrap-add-clear" rev="1.0.7">
  <artifact name="bootstrap-add-clear" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='bootstrap-add-clear', version='1.0.7')
)
libraryDependencies += "org.webjars.npm" % "bootstrap-add-clear" % "1.0.7"
[org.webjars.npm/bootstrap-add-clear "1.0.7"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Maintainer: Gus Esquivel
Plugin Website: http://gesquive.github.io/bootstrap-add-clear
Contributers: Stephen Korecky, scoman81, Steve887, Deividy, zarv1k, grrizzly, adambiggs, Vladekk, denisj, starspoint


About

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.

Getting Started

How you acquire bootstrap-add-clear is up to you.

Bower

Install with Bower:

bower install bootstrap-add-clear

NPM

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');

Github

Clone the boostrap-add-clear repository:

git clone [email protected]:gesquive/bootstrap-add-clear.git

Direct Download

Note: bootstrap-add-clear has a dependency on jquery 1.8+ and Bootstrap 3

Available Options

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

Using Options

$("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"
})

Versions

Version
1.0.7