Skip to content

docs(table): add missing table JsDoc #5525

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

Merged
merged 1 commit into from
Jul 6, 2017
Merged
Show file tree
Hide file tree
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
12 changes: 5 additions & 7 deletions guides/cdk-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ The table provides a foundation upon which other features, such as sorting and p
built. Because it enforces no opinions on these matters, developers have full control over the
interaction patterns associated with the table.

For a Material Design styled table, see the documentation for `<md-table>` which builds on top of
the CDK data-table.
For a Material Design styled table, see the
[documentation for `<md-table>`](https://material.angular.io/components/table) which builds on
top of the CDK data-table.

<!-- example(cdk-table-basic) -->

Expand Down Expand Up @@ -117,12 +118,9 @@ sorting and pagination.

##### `trackBy`
To improve performance, a trackBy function can be provided to the table similar to Angular’s
(`ngFor` trackBy)[trackBy]. This informs the table how to uniquely identify rows to track how the
data changes with each update.
[`ngFor` trackBy](https://angular.io/api/common/NgForOf#change-propagation). This informs the
table how to uniquely identify rows to track how the data changes with each update.

```html
<cdk-table [dataSource]="dataSource" [trackBy]="myTrackById">
```


[trackBy][https://angular.io/api/common/NgForOf#change-propagation]
Loading