Skip to content

Commit a185581

Browse files
andrewseguintinayuangao
authored andcommitted
compat(sort): add mat-compat inputs (#6172)
1 parent 735ffb5 commit a185581

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/lib/sort/sort.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ export class MdSort {
5151
set disableClear(v) { this._disableClear = coerceBooleanProperty(v); }
5252
private _disableClear: boolean;
5353

54+
// Properties with `mat-` prefix for noconflict mode.
55+
@Input('matSortActive')
56+
get _matSortActive() { return this.active; }
57+
set _matSortActive(v) { this.active = v; }
58+
59+
// Properties with `mat-` prefix for noconflict mode.
60+
@Input('matSortStart')
61+
get _matSortStart() { return this.start; }
62+
set _matSortStart(v) { this.start = v; }
63+
64+
// Properties with `mat-` prefix for noconflict mode.
65+
@Input('matSortDirection')
66+
get _matSortDirection() { return this.direction; }
67+
set _matSortDirection(v) { this.direction = v; }
68+
69+
// Properties with `mat-` prefix for noconflict mode.
70+
@Input('matSortDisableClear')
71+
get _matSortDisableClear() { return this.disableClear; }
72+
set _matSortDisableClear(v) { this.disableClear = v; }
73+
5474
/** Event emitted when the user changes either the active sort or sort direction. */
5575
@Output() mdSortChange = new EventEmitter<Sort>();
5676

0 commit comments

Comments
 (0)