File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/material/button-toggle
tools/public_api_guard/material Expand file tree Collapse file tree 2 files changed +4
-6
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 ) {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ export declare const MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: any;
4
4
5
5
export declare class MatButtonToggle extends _MatButtonToggleMixinBase implements OnInit , CanDisableRipple , OnDestroy {
6
6
_buttonElement : ElementRef < HTMLButtonElement > ;
7
- _type : ToggleType ;
8
7
get appearance ( ) : MatButtonToggleAppearance ;
9
8
set appearance ( value : MatButtonToggleAppearance ) ;
10
9
ariaLabel : string ;
You can’t perform that action at this time.
0 commit comments