File

src/lib/info-window/info-window.service.ts

Description

This service can be used to display a dialog window with the Label Designer component.

Example

<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);
}

Index

Methods

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 :
Name Type Optional
value any Yes
Returns : void
open
open(data: IInfoWindow)

Opens the dialog window with an observable for the close value

Parameters :
Name Type Optional
data IInfoWindow No
Returns : Observable<any>

result-matching ""

    No results matching ""