-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Expand file tree
/
Copy pathbutton-demo.ts
More file actions
57 lines (55 loc) · 1.44 KB
/
button-demo.ts
File metadata and controls
57 lines (55 loc) · 1.44 KB
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
55
56
57
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {
MatAnchor,
MatButton,
MatButtonAppearance,
MatFabAnchor,
MatFabButton,
MatIconAnchor,
MatIconButton,
MatMiniFabAnchor,
MatMiniFabButton,
} from '@angular/material/button';
import {MatCheckbox} from '@angular/material/checkbox';
import {MatIcon} from '@angular/material/icon';
import {MatProgressSpinner} from '@angular/material/progress-spinner';
import {MatTooltip} from '@angular/material/tooltip';
@Component({
selector: 'button-demo',
templateUrl: 'button-demo.html',
styleUrl: 'button-demo.css',
imports: [
FormsModule,
MatAnchor,
MatButton,
MatCheckbox,
MatFabAnchor,
MatFabButton,
MatIcon,
MatIconAnchor,
MatIconButton,
MatMiniFabAnchor,
MatMiniFabButton,
MatProgressSpinner,
MatTooltip,
],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ButtonDemo {
isDisabled = false;
showProgress = false;
clickCounter = 0;
toggleDisable = false;
extendFABCollapsed = false;
tooltipText = 'This is a button tooltip!';
disabledInteractive = false;
appearances: MatButtonAppearance[] = ['text', 'elevated', 'outlined', 'filled', 'tonal'];
}