Skip to content

Commit 5e37d81

Browse files
author
hi
committed
Added some stylesheets to pagination table
1 parent d0b9fef commit 5e37d81

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

src/app/views/data-table.html

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,43 @@
1-
<!-- TODO: Replace table to table component when https://github.com/angular/material/issues/796 will closed -->
2-
<md-toolbar class="md-table-toolbar md-default">
3-
<div class="md-toolbar-tools">
4-
<span>Nutrition</span>
5-
</div>
6-
</md-toolbar>
1+
<div class="table-responsive-vertical md-whiteframe-z1">
2+
<!-- TODO: Replace table to table component when https://github.com/angular/material/issues/796 will closed -->
3+
<md-toolbar class="md-table-toolbar md-default">
4+
<div class="md-toolbar-tools">
5+
<span>Nutrition</span>
6+
</div>
7+
</md-toolbar>
78

8-
<!-- exact table from live demo -->
9-
<md-table-container>
10-
<table md-table md-row-select multiple ng-model="selected" >
11-
<thead md-head md-order="query.order" md-on-reorder="vm.getItems()">
12-
<tr md-row>
13-
<th md-column md-numeric>ID</th>
14-
<th md-column md-order-by="nameToLower"><span>Dessert (100g serving)</span></th>
15-
<th md-column md-numeric md-order-by="calories.value"><span>Calories</span></th>
16-
<th md-column md-numeric>Fat (g)</th>
17-
<th md-column md-numeric>Carbs (g)</th>
18-
19-
</tr>
20-
</thead>
21-
<tbody md-body>
22-
<tr md-row md-select="item" md-select-id="name" md-auto-select ng-repeat="item in vm.tableData">
23-
<td md-cell>{{item.id}}</td>
24-
<td md-cell>{{item.issue}}</td>
25-
<td md-cell>{{item.progress}}</td>
26-
<td md-cell>{{item.status}}</td>
27-
<td md-cell>
28-
<md-progress-linear class="table-progress {{item.class}}"
29-
md-mode="determinate"
30-
value={{item.progress}}>
31-
</md-progress-linear>
32-
</td>
33-
34-
9+
<!-- exact table from live demo -->
10+
<md-table-container>
11+
<table md-table md-row-select multiple ng-model="selected" class="table table-hover table-bordered" >
12+
<thead md-head md-order="query.order" md-on-reorder="vm.getItems()">
13+
<tr md-row>
14+
<th md-column md-numeric>ID</th>
15+
<th md-column md-order-by="nameToLower"><span>Dessert (100g serving)</span></th>
16+
<th md-column md-numeric md-order-by="calories.value"><span>Calories</span></th>
17+
<th md-column md-numeric>Fat (g)</th>
18+
<th md-column md-numeric>Carbs (g)</th>
3519

36-
</tr>
37-
</tbody>
38-
</table>
39-
</md-table-container>
20+
</tr>
21+
</thead>
22+
<tbody md-body>
23+
<tr md-row md-select="item" md-select-id="name" md-auto-select ng-repeat="item in vm.tableData">
24+
<td md-cell>{{item.id}}</td>
25+
<td md-cell>{{item.issue}}</td>
26+
<td md-cell>{{item.progress}}</td>
27+
<td md-cell>{{item.status}}</td>
28+
<td md-cell>
29+
<md-progress-linear class="table-progress {{item.class}}"
30+
md-mode="determinate"
31+
value={{item.progress}}>
32+
</md-progress-linear>
33+
</td>
34+
35+
36+
37+
</tr>
38+
</tbody>
39+
</table>
40+
</md-table-container>
4041

41-
<md-table-pagination md-limit="query.limit" md-limit-options="[5, 10, 15]" md-page="query.page" md-total="{{vm.totalItems}}" md-on-paginate="vm.getItems()" md-page-select></md-table-pagination>
42+
<md-table-pagination md-limit="query.limit" md-limit-options="[5, 10, 15]" md-page="query.page" md-total="{{vm.totalItems}}" md-on-paginate="vm.getItems()" md-page-select></md-table-pagination>
43+
</div>

0 commit comments

Comments
 (0)