tameraydin / ng-clear-button

Adds the missing clear button to input elements

Home Page:http://tamerayd.in/ng-clear-button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng-clear-button Build Status Code Climate Coverage Status

Demo

Usage

Install ng-clear-button via Bower:

bower install ng-clear-button --production

Include main files:

<link rel="stylesheet" href="bower_components/ng-clear-button/dist/ng-clear-button.min.css">
<script src="bower_components/ng-clear-button/dist/ng-clear-button.min.js"></script>

Include angularClearButton module as a dependency into your app:

angular
  .module('yourApp', [
    'angularClearButton'
  ]);

Place with-clear-button attribute into your HTML input element:

<input type="search" with-clear-button />
<!-- with optional attributes:
  clear-button-html="<img src=\"custom-button.png\" />"
  clear-button-is-visible
-->

Development

See the instructions at ng-pack.

License

MIT http://tameraydin.mit-license.org/

TODO

  • Add more unit tests

About

Adds the missing clear button to input elements

http://tamerayd.in/ng-clear-button


Languages

Language:JavaScript 87.1%Language:CSS 8.8%Language:HTML 4.0%