Table

Examples for table
Basic use of `<table mat-table>`
No. Name Weight Symbol
1 Hydrogen 1.0079 H
2 Helium 4.0026 He
3 Lithium 6.941 Li
4 Beryllium 9.0122 Be
5 Boron 10.811 B
6 Carbon 12.0107 C
7 Nitrogen 14.0067 N
8 Oxygen 15.9994 O
9 Fluorine 18.9984 F
10 Neon 20.1797 Ne
Basic use of `<mat-table>` (uses display flex)
No. Name Weight Symbol 1 Hydrogen 1.0079 H 2 Helium 4.0026 He 3 Lithium 6.941 Li 4 Beryllium 9.0122 Be 5 Boron 10.811 B 6 Carbon 12.0107 C 7 Nitrogen 14.0067 N 8 Oxygen 15.9994 O 9 Fluorine 18.9984 F 10 Neon 20.1797 Ne
Table dynamically changing the columns displayed
name weight symbol position
Hydrogen 1.0079 H 1
Helium 4.0026 He 2
Lithium 6.941 Li 3
Beryllium 9.0122 Be 4
Boron 10.811 B 5
Carbon 12.0107 C 6
Nitrogen 14.0067 N 7
Oxygen 15.9994 O 8
Fluorine 18.9984 F 9
Neon 20.1797 Ne 10
Table with expandable rows
name weight symbol position
Hydrogen 1.0079 H 1
Helium 4.0026 He 2
Lithium 6.941 Li 3
Beryllium 9.0122 Be 4
Boron 10.811 B 5
Carbon 12.0107 C 6
Nitrogen 14.0067 N 7
Oxygen 15.9994 O 8
Fluorine 18.9984 F 9
Neon 20.1797 Ne 10
Table with filtering
No. Name Weight Symbol
1 Hydrogen 1.0079 H
2 Helium 4.0026 He
3 Lithium 6.941 Li
4 Beryllium 9.0122 Be
5 Boron 10.811 B
6 Carbon 12.0107 C
7 Nitrogen 14.0067 N
8 Oxygen 15.9994 O
9 Fluorine 18.9984 F
10 Neon 20.1797 Ne
Footer row table
Item Cost
Beach ball $4.00
Towel $5.00
Frisbee $2.00
Sunscreen $4.00
Cooler $25.00
Swim suit $15.00
Table retrieving data through HTTP
State#Title
Apr 13, 2019open15808fix(drag-drop): preview element not maintaining canvas data
Apr 13, 2019closed15807cdkDrag does nothing when inside an *ngFor looping through a returned 2 dimensional array
Apr 12, 2019open15806refactor(slide-toggle): constructor breaking changes for 8.0
Apr 12, 2019open15805fix(drag-drop): not reacting to changes in the cdkDragFreeDragPosition
Apr 12, 2019open15804feat(select): configurable panel max-height
Apr 12, 2019open15803Customisable select panel height
Apr 12, 2019open15801Allow title on mat-badge
Apr 12, 2019open15800fix(table): schematic generates code that throws an exception
Apr 12, 2019open15799docs(cdk): add API docs for a11y region directives
Apr 11, 2019open15798Buttons with an icon and text are not up to spec
Apr 11, 2019open15797 perf(popover-edit): collect common services into a single class for dependency injection
Apr 11, 2019closed15796I have five elements in the ngfor list. one of them jumps the order and moves to top when dragged.
Apr 11, 2019open15795Drag and drop, ability to hold element while drag
Apr 11, 2019open15794fix(chips): allow for role to be overwritten on chip list and chip
Apr 11, 2019open15793 feat(popover-edit): allow tabbing from popup to next/previous cell
Apr 11, 2019closed15792IE11: matInput does not get focused when clicking on mat-form-field
Apr 11, 2019open15791schematic(table): using generated DataSource with async data source
Apr 11, 2019open15790autocomplete placed inside the chip-list not preventing dummy type text
Apr 11, 2019open15789MatIcon with custom SVG does not work, even in angular docs
Apr 11, 2019open15788schematic(table): Cannot read property 'data' of undefined
Apr 11, 2019open15787[chips] Add support to specify role for chip list and chip
Apr 11, 2019open15785[A11y] aria-describer is not reactive
Apr 11, 2019open15784docs(readme): general update and refresh
Apr 11, 2019open15783chore: fix miscellaneous typos in comments
Apr 10, 2019open15782prototype(checkbox): create prototype checkbox based on MDC Web
Apr 10, 2019open15781[Tooltip] Is buggy when Angular 7 project is deployed as an Angular Element
Apr 10, 2019open15780Color contrast too low on error messages
Apr 10, 2019open15779Enable support to show all dates on Month's Datepicker
Apr 10, 2019open15778Allow mat-error in mat-form-field subviews
Apr 10, 2019open15777Deliberately and manually trigger resize of drawer / sidenav
Items per page:
30
1 - 30 of 15755
Table with multiple header and footer rows
Item Cost
Name of the item purchased Cost of the item in USD
Beach ball $4.00
Towel $5.00
Frisbee $2.00
Sunscreen $4.00
Cooler $25.00
Swim suit $15.00
Data table with sorting, pagination, and filtering.
1 Atticus A. 75% navy
2 Violet A. 18% yellow
3 Maia L. 40% olive
4 Jack A. 16% red
5 Maia J. 53% gray
Items per page:
1 - 5 of 100
Table with pagination
No. Name Weight Symbol
1 Hydrogen 1.0079 H
2 Helium 4.0026 He
3 Lithium 6.941 Li
4 Beryllium 9.0122 Be
5 Boron 10.811 B
Items per page:
1 - 5 of 20
Table showing each row context properties.
$implicit index count first last even odd
one 0 5 true false true false
two 1 5 false false false true
three 2 5 false false true false
four 3 5 false false false true
five 4 5 false true true false
Table with selection
No. Name Weight Symbol
1 Hydrogen 1.0079 H
2 Helium 4.0026 He
3 Lithium 6.941 Li
4 Beryllium 9.0122 Be
5 Boron 10.811 B
6 Carbon 12.0107 C
7 Nitrogen 14.0067 N
8 Oxygen 15.9994 O
9 Fluorine 18.9984 F
10 Neon 20.1797 Ne
Table with sorting
1 Hydrogen 1.0079 H
2 Helium 4.0026 He
3 Lithium 6.941 Li
4 Beryllium 9.0122 Be
5 Boron 10.811 B
6 Carbon 12.0107 C
7 Nitrogen 14.0067 N
8 Oxygen 15.9994 O
9 Fluorine 18.9984 F
10 Neon 20.1797 Ne
Table with sticky columns
Name No. Weight Symbol No. Weight Symbol
Hydrogen 1 1.0079 H 1 1.0079 H
Helium 2 4.0026 He 2 4.0026 He
Lithium 3 6.941 Li 3 6.941 Li
Beryllium 4 9.0122 Be 4 9.0122 Be
Boron 5 10.811 B 5 10.811 B
Carbon 6 12.0107 C 6 12.0107 C
Nitrogen 7 14.0067 N 7 14.0067 N
Oxygen 8 15.9994 O 8 15.9994 O
Fluorine 9 18.9984 F 9 18.9984 F
Neon 10 20.1797 Ne 10 20.1797 Ne
Table with a sticky footer
Item Cost
Beach ball $4.00
Towel $5.00
Frisbee $2.00
Sunscreen $4.00
Cooler $25.00
Swim suit $15.00
Table with sticky header
No. Name Weight Symbol
1 Hydrogen 1.0079 H
2 Helium 4.0026 He
3 Lithium 6.941 Li
4 Beryllium 9.0122 Be
5 Boron 10.811 B
6 Carbon 12.0107 C
7 Nitrogen 14.0067 N
8 Oxygen 15.9994 O
9 Fluorine 18.9984 F
10 Neon 20.1797 Ne