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