This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, ElementRef, HostListener, AfterViewInit } from '@angular/core'; | |
/* | |
* Directive to add 'drag' support to Ngx Bootstrap modals (https://github.com/valor-software/ngx-bootstrap). | |
* Based on this library to enable drag support for an ng-bootstrap modal: https://github.com/mattxu-zz/ngb-modal-draggable | |
* | |
* Enable by adding the directive to the modal-header element, e.g.: | |
* | |
* <div class="modal-header" ngxModalDraggable> </div> | |
*/ |