Last change
on this file since 472dd7e was 28d7d35, checked in by Mile Jankuloski <mile.jankuloski@…>, 3 years ago |
Maps, geolocation api, dialogs & more
|
-
Property mode
set to
100644
|
File size:
729 bytes
|
Rev | Line | |
---|
[ee137aa] | 1 | import { Component, OnInit, Inject } from '@angular/core';
|
---|
| 2 | import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
---|
| 3 | import { IHealthcareWorkers } from '../../shared/interfaces';
|
---|
| 4 |
|
---|
| 5 | @Component({
|
---|
| 6 | selector: 'app-worker-dialog',
|
---|
| 7 | templateUrl: './worker-dialog.component.html',
|
---|
| 8 | styleUrls: ['./worker-dialog.component.css']
|
---|
| 9 | })
|
---|
| 10 | export class WorkerDialogComponent implements OnInit {
|
---|
| 11 | worker: IHealthcareWorkers;
|
---|
[28d7d35] | 12 | isExpanded: boolean = false;
|
---|
[ee137aa] | 13 |
|
---|
| 14 | constructor(private dialogRef: MatDialogRef<WorkerDialogComponent>, @Inject(MAT_DIALOG_DATA) data) {
|
---|
| 15 | this.worker = data;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | ngOnInit(): void {
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | close() {
|
---|
| 22 | this.dialogRef.close();
|
---|
| 23 | }
|
---|
| 24 |
|
---|
[28d7d35] | 25 | toggleExpansion() {
|
---|
| 26 | this.isExpanded = !this.isExpanded;
|
---|
| 27 | }
|
---|
| 28 |
|
---|
[ee137aa] | 29 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.