Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Component, Input, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { TranslateService } from '@ngx-translate/core';
@Component({
templateUrl: 'date-option-modal.component.html',
styleUrls: ['date-option-modal.component.scss'],
})
export class DateOptionModalComponent implements OnInit {
@Input() date: any;
today: Date = new Date();
dateformats: any[] = [
'dd/MM/y',
'dd-MM-y',
'dd.MM.y',
'd MMM y',
'd MMMM y',
];
datefonts: any[] = [
'Arial',
'Verdana',
'Helvetica',
'Tahoma',
'Times New Roman',
'Courier New',
];
constructor(
private translate: TranslateService,
public modalController: ModalController
) { }
ngOnInit(): void {
console.log(this.date);
}
dismissModal() {
this.modalController.dismiss('cancel');
}
getFontLabel(label: string) {
return label.replace(' ', '_');
}
test() {
}
}