Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimaslz/ngoutclick
Directive to catch click outside an element like onBlur on input
https://github.com/dimaslz/ngoutclick
Last synced: 5 days ago
JSON representation
Directive to catch click outside an element like onBlur on input
- Host: GitHub
- URL: https://github.com/dimaslz/ngoutclick
- Owner: dimaslz
- Created: 2015-07-23T00:37:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-01T21:16:15.000Z (over 9 years ago)
- Last Synced: 2024-11-04T01:42:24.009Z (about 2 months ago)
- Language: CSS
- Size: 71.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ngOutClick
ngOutClick is a angular component for add event onBlur in any tag html.```html
Now, tag have onBlur event
```## Install
You can use bower for install:
`bower install ngOutClick`
`bower install ngOutClick --save` // for add to bower dependenciesand inject on your angular controller:
`angular.module('myModule', ['ngOutClick']);`## Attributes
### out-click-callback="callbackMethod()"
This is an attribute for execute an action that you want after click outside element.### out-click-init="initMethod()"
This is an extra attribute for execute an action when load the element.## Live Demo
Live demo available on [Github Page](https://dimaslz.github.io/ngOutClick) and [Fiddle](https://fiddle.jshell.net/dimaslz/2qyus2aq/) for you can try your own examples.## TODO
* tests