projects/maplander/shared/src/lib/components/location/location.service.ts
Methods |
|
constructor(_matDialog: MatDialog)
|
||||||
Parameters :
|
Public open | ||||||
open(options?: LocationOptions)
|
||||||
Parameters :
Returns :
MatDialogRef<LocationComponent>
|
import {Injectable} from '@angular/core';
import {MatDialogRef} from '@angular/material/dialog/typings/dialog-ref';
import {MatDialog} from '@angular/material/dialog';
import {LocationComponent} from './location.component';
import {LocationOptions} from '@maplander/types';
@Injectable()
export class LocationService {
constructor(
private _matDialog: MatDialog
) {
}
public open(options?: LocationOptions): MatDialogRef<LocationComponent> {
return this._matDialog.open(LocationComponent, {
panelClass: 'dialog_location',
data: options || null,
width: '40%',
height: '80%'
});
}
}