File tree 7 files changed +41
-7
lines changed
7 files changed +41
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,12 @@ let _uniqueAutocompleteIdCounter = 0;
33
33
34
34
/** Event object that is emitted when an autocomplete option is selected */
35
35
export class MatAutocompleteSelectedEvent {
36
- constructor ( public source : MatAutocomplete , public option : MatOption ) { }
36
+ constructor (
37
+ /** Reference to the autocomplete panel that emitted the event. */
38
+ public source : MatAutocomplete ,
39
+
40
+ /** Option that was selected. */
41
+ public option : MatOption ) { }
37
42
}
38
43
39
44
Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ let nextUniqueId = 0;
60
60
61
61
/** Change event object that is emitted when the chip list value has changed. */
62
62
export class MatChipListChange {
63
- constructor ( public source : MatChipList , public value : any ) { }
63
+ constructor (
64
+ /** Chip list that emitted the event. */
65
+ public source : MatChipList ,
66
+
67
+ /** Value of the chip list when the event was emitted. */
68
+ public value : any ) { }
64
69
}
65
70
66
71
Original file line number Diff line number Diff line change @@ -29,7 +29,15 @@ export interface MatChipEvent {
29
29
30
30
/** Event object emitted by MatChip when selected or deselected. */
31
31
export class MatChipSelectionChange {
32
- constructor ( public source : MatChip , public selected : boolean , public isUserInput = false ) { }
32
+ constructor (
33
+ /** Reference to the chip that emitted the event. */
34
+ public source : MatChip ,
35
+
36
+ /** Whether the chip that emitted the event is selected. */
37
+ public selected : boolean ,
38
+
39
+ /** Whether the selection change was a result of a user interaction. */
40
+ public isUserInput = false ) { }
33
41
}
34
42
35
43
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ let _uniqueIdCounter = 0;
32
32
33
33
/** Event object emitted by MatOption when selected or deselected. */
34
34
export class MatOptionSelectionChange {
35
- constructor ( public source : MatOption , public isUserInput = false ) { }
35
+ constructor (
36
+ /** Reference to the option that emitted the event. */
37
+ public source : MatOption ,
38
+ /** Whether the change in the option's value was a result of a user action. */
39
+ public isUserInput = false ) { }
36
40
}
37
41
38
42
/**
Original file line number Diff line number Diff line change @@ -61,7 +61,11 @@ export class MatDatepickerInputEvent<D> {
61
61
/** The new value for the target datepicker input. */
62
62
value : D | null ;
63
63
64
- constructor ( public target : MatDatepickerInput < D > , public targetElement : HTMLElement ) {
64
+ constructor (
65
+ /** Reference to the datepicker input component that emitted the event. */
66
+ public target : MatDatepickerInput < D > ,
67
+ /** Reference to the native input element associated with the datepicker input. */
68
+ public targetElement : HTMLElement ) {
65
69
this . value = this . target . value ;
66
70
}
67
71
}
Original file line number Diff line number Diff line change @@ -137,7 +137,11 @@ export const MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {
137
137
138
138
/** Change event object that is emitted when the select value has changed. */
139
139
export class MatSelectChange {
140
- constructor ( public source : MatSelect , public value : any ) { }
140
+ constructor (
141
+ /** Reference to the select that emitted the change event. */
142
+ public source : MatSelect ,
143
+ /** Current value of the select that emitted the event. */
144
+ public value : any ) { }
141
145
}
142
146
143
147
// Boilerplate for applying mixins to MatSelect.
Original file line number Diff line number Diff line change @@ -51,7 +51,11 @@ export function throwMatDuplicatedDrawerError(position: string) {
51
51
* @deprecated
52
52
*/
53
53
export class MatDrawerToggleResult {
54
- constructor ( public type : 'open' | 'close' , public animationFinished : boolean ) { }
54
+ constructor (
55
+ /** Whether the drawer is opened or closed. */
56
+ public type : 'open' | 'close' ,
57
+ /** Whether the drawer animation is finished. */
58
+ public animationFinished : boolean ) { }
55
59
}
56
60
57
61
You can’t perform that action at this time.
0 commit comments