-
Notifications
You must be signed in to change notification settings - Fork 6.8k
/
Copy pathbutton-toggle-demo.ts
30 lines (28 loc) · 1.01 KB
/
button-toggle-demo.ts
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
/**
* @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 {MatButtonToggleModule} from '@angular/material/button-toggle';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatIconModule} from '@angular/material/icon';
@Component({
selector: 'button-toggle-demo',
templateUrl: 'button-toggle-demo.html',
styleUrl: 'button-toggle-demo.css',
imports: [FormsModule, MatButtonToggleModule, MatCheckboxModule, MatIconModule],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ButtonToggleDemo {
isVertical = false;
isDisabled = false;
disabledInteractive = false;
hideSingleSelectionIndicator = false;
hideMultipleSelectionIndicator = false;
favoritePie = 'Apple';
pieOptions = ['Apple', 'Cherry', 'Pecan', 'Lemon'];
}