0.3.2 • Published 4 years ago

@lunaeme/circe-click-outside v0.3.2

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

Circe :: Angular Click Outside Directive

Directive that emits event when clicking outside of the element where directive applies.

The $event emitted is undefined.

Compatibility

Angular >= v.8.2.10

Installation

Run npm install @lunaeme/circe-click-outside or

run yarn add @lunaeme/circe-click-outside.

Use

You need to import ClickOutsideModule into your module imports section.

Then use this way:

<div
  ccClickOutside
  (clickOutside)="clickOutsideActionMethod()">
  Some content...
</div>

Inputs

@Input() apply: boolean = true;

You can dcide through this boolean input if directive works or not.

DEFAULT: true

 

@Input() exceptions: Array<string> = [];

Array composed by external DOM id's that by clicking on them, the clickOutside event is not emitted.

DEFAULT: []

Outputs

@Output() clickOutside: EventEmitter<undefined> = new EventEmitter();

Emits event when clicking outside of the element where directive applies.

Repo

https://github.com/nulpas/circe/tree/master/projects/click-outside

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago