src/lib/info-window/info-window.service.ts
This service can be used to display a dialog window with the Label Designer component.
<ng-template #action>
<button (click)="doYes()" class="btn btn-default btn-sm pull-right">Yes</button>
</ng-template>
(at)ViewChild('action', { static: true }) action: TemplateRef<any>;
infoWindowService.open({title: 'dialog', content: 'Are you sure that you want to do that?', actions: this.action});
function doYes() {
infoWindowService.close(true);
}
Methods |
close | ||||||
close(value?: any)
|
||||||
Closes the dialog and sends the closing value to the observable that was returned when the dialog was opened.
Parameters :
Returns :
void
|
open | ||||||
open(data: IInfoWindow)
|
||||||
Opens the dialog window with an observable for the close value
Parameters :
Returns :
Observable<any>
|