Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compat(sort): add mat-compat inputs #6172

Merged
merged 1 commit into from
Aug 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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