File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/material/button-toggle Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,6 @@ import {
39
39
} from '@angular/material/core' ;
40
40
41
41
42
- /** Acceptable types for a button toggle. */
43
- export type ToggleType = 'checkbox' | 'radio' ;
44
-
45
42
/** Possible appearance styles for the button toggle. */
46
43
export type MatButtonToggleAppearance = 'legacy' | 'standard' ;
47
44
@@ -411,9 +408,6 @@ export class MatButtonToggle extends _MatButtonToggleMixinBase implements OnInit
411
408
*/
412
409
@Input ( 'aria-labelledby' ) ariaLabelledby : string | null = null ;
413
410
414
- /** Type of the button toggle. Either 'radio' or 'checkbox'. */
415
- _type : ToggleType ;
416
-
417
411
@ViewChild ( 'button' ) _buttonElement : ElementRef < HTMLButtonElement > ;
418
412
419
413
/** The parent button toggle group (exclusive selection). Optional. */
@@ -494,7 +488,6 @@ export class MatButtonToggle extends _MatButtonToggleMixinBase implements OnInit
494
488
ngOnInit ( ) {
495
489
const group = this . buttonToggleGroup ;
496
490
this . _isSingleSelector = group && ! group . multiple ;
497
- this . _type = this . _isSingleSelector ? 'radio' : 'checkbox' ;
498
491
this . id = this . id || `mat-button-toggle-${ _uniqueIdCounter ++ } ` ;
499
492
500
493
if ( this . _isSingleSelector ) {
You can’t perform that action at this time.
0 commit comments