Skip to content

Commit

Permalink
compat(sort): add mat-compat inputs (#6172)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin authored and tinayuangao committed Aug 1, 2017
1 parent 735ffb5 commit a185581
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/lib/sort/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@ export class MdSort {
set disableClear(v) { this._disableClear = coerceBooleanProperty(v); }
private _disableClear: boolean;

// Properties with `mat-` prefix for noconflict mode.
@Input('matSortActive')
get _matSortActive() { return this.active; }
set _matSortActive(v) { this.active = v; }

// Properties with `mat-` prefix for noconflict mode.
@Input('matSortStart')
get _matSortStart() { return this.start; }
set _matSortStart(v) { this.start = v; }

// Properties with `mat-` prefix for noconflict mode.
@Input('matSortDirection')
get _matSortDirection() { return this.direction; }
set _matSortDirection(v) { this.direction = v; }

// Properties with `mat-` prefix for noconflict mode.
@Input('matSortDisableClear')
get _matSortDisableClear() { return this.disableClear; }
set _matSortDisableClear(v) { this.disableClear = v; }

/** Event emitted when the user changes either the active sort or sort direction. */
@Output() mdSortChange = new EventEmitter<Sort>();

Expand Down

0 comments on commit a185581

Please sign in to comment.