feat: tour integration

Tour Integration
This commit is contained in:
Ramveer
2022-09-02 17:03:13 +05:30
committed by GitHub
parent 52b7a3274e
commit f1be9ab5b1
119 changed files with 6360 additions and 456 deletions
@@ -0,0 +1,32 @@
/** Angular Imports */
import { Directive, HostListener, Input, Optional } from '@angular/core';
/** Popover Ref */
import { PopoverRef } from './popover-ref';
/**
* Button that will close the current popover.
*/
@Directive({
selector: '[mifosxPopoverClose]'
})
export class PopoverCloseDirective<T = any> {
@Input('mifosxPopoverClose') popoverResult: T;
/**
* @param {PopoverRef<T>} popoverRef PopoverRef<T>.
*/
constructor(
@Optional() private popoverRef: PopoverRef<T>
) {}
@HostListener('click') onClick(): void {
if (!this.popoverRef) {
console.error('PopoverClose is not supported within a template');
return;
}
this.popoverRef.close(this.popoverResult);
}
}