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

feat(table): support native table selectors #10594

Merged
merged 3 commits into from Mar 30, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

fix build by importing Element

  • Loading branch information
andrewseguin committed Mar 30, 2018
commit 311854895d643e2e229fae0657aa79dba3a0d565
@@ -7,7 +7,7 @@
*/

import {Component, ElementRef, ViewChild} from '@angular/core';
import {ELEMENT_DATA} from '../element-data';
import {ELEMENT_DATA, Element} from '../element-data';
import {MatPaginator, MatSort, MatTableDataSource} from '@angular/material';
import {PeopleDatabase, UserData} from '../people-database';
import {SelectionModel} from '@angular/cdk/collections';
@@ -22,7 +22,7 @@ import {fromEvent} from 'rxjs';
export class NativeTableDemo {
definedColumns = ['name', 'weight', 'symbol', 'position'];
columnsToDisplay = this.definedColumns;
data = ELEMENT_DATA.slice();
data: Element[] = ELEMENT_DATA.slice();

dataSource = new MatTableDataSource<UserData>();
columns = ['select', 'userId', 'userName', 'progress', 'color'];
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.