[Table] Add a full-featured but limited table component and array-based data source
See original GitHub issueIntroduce a new table component that would use <mat-table>
and come with built-in features including sorting, pagination, selection, etc. Would accept an array-based data input so users do not need to create a data source to use the table.
This would allow people to quickly use a table but would limit their ability to customize behavior and would be very opinionated on user experience.
Example concept:
<mat-simple-table #simpleTable [data]="_peopleDatabase.data" pageSize="25">
<mat-simple-column headerText="User ID" property="id"></mat-simple-column>
<mat-simple-column headerText="Name" property="name"></mat-simple-column>
<mat-simple-column headerText="Progress" property="progress"></mat-simple-column>
<mat-simple-column headerText="Color" property="color"></mat-simple-column>
</mat-simple-table>
Notes:
- Long column names should be truncated and display a tooltip on hover
Issue Analytics
- State:
- Created 6 years ago
- Reactions:25
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to add data dynamically to mat-table dataSource?
I have found a solution for this problem, basically if you do: this.dataSource.data.push(newElement); //Doesn't work. But if you replace the ...
Read more >Tables - CKEditor 5 Documentation
The table feature offers table creation and editing tools that help content authors bring tabular data into their documents. Tables help organize the...
Read more >DataTable UI widget documentation - Webix
It is a powerful yet easy-to-use component that supports different data sources (XML, JSON, CSV, JSArray, HTML tables). Datatable has various possibilities ...
Read more >Do not include some Object data source items - DataTables
I have data coming with a field to Ignore the entry. ... I may be counting, adding, or doing other things with the...
Read more >Full-featured Angular Data Grid (Data Table) | Smart UI for ...
The Angular Grid component for Web development. Supporting editing by cell or entire row, grouping, paging, sorting by single or multiple columns, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mykolav here’s an updated version as a angular 14 standalone component that I have working:
FYI, I finally got this to work, by explicitly connecting the columnDef to its children. I don’t know if this happens later, or if it should happen sooner but doesn’t for some reason.