Fixed issue #1 and some other fixes

This commit is contained in:
lotte
2018-07-30 10:19:45 +02:00
parent 1ab53e7204
commit 3fa70523ea
55 changed files with 450 additions and 135 deletions

View File

@@ -1,9 +1,15 @@
import {Directive, ElementRef, Output, EventEmitter, HostListener} from '@angular/core';
import { Directive, ElementRef, Output, EventEmitter, HostListener } from '@angular/core';
@Directive({
selector: '[dsClickOutside]'
})
/**
* Directive to detect when the users clicks outside of the element the directive was put on
*/
export class ClickOutsideDirective {
/**
* Emits null when the user clicks outside of the element
*/
@Output()
public dsClickOutside = new EventEmitter();