Thomas Vachuska | a2ae422 | 2015-04-29 18:42:09 -0700 | [diff] [blame] | 1 | <!-- partial HTML --> |
Simon Hunt | 84f4c2a | 2015-09-23 17:52:45 -0700 | [diff] [blame^] | 2 | <div id="ov-sample-table"> |
Simon Hunt | e11ce5a | 2015-07-21 12:11:04 -0700 | [diff] [blame] | 3 | <div class="tabular-header"> |
| 4 | <h2>Items ({{tableData.length}} total)</h2> |
| 5 | <div class="ctrl-btns"> |
| 6 | <div class="refresh" ng-class="{active: autoRefresh}" |
| 7 | icon icon-id="refresh" icon-size="36" |
| 8 | tooltip tt-msg="autoRefreshTip" |
| 9 | ng-click="toggleRefresh()"></div> |
| 10 | </div> |
| 11 | </div> |
Thomas Vachuska | a2ae422 | 2015-04-29 18:42:09 -0700 | [diff] [blame] | 12 | |
Simon Hunt | e11ce5a | 2015-07-21 12:11:04 -0700 | [diff] [blame] | 13 | <div class="summary-list" onos-table-resize> |
| 14 | |
| 15 | <div class="table-header" onos-sortable-header> |
| 16 | <table> |
| 17 | <tr> |
Bri Prebilic Cole | 68844ba | 2015-07-22 15:41:37 -0700 | [diff] [blame] | 18 | <td colId="id" sortable>Item ID </td> |
| 19 | <td colId="label" sortable>Label </td> |
| 20 | <td colId="code" sortable>Code </td> |
Simon Hunt | e11ce5a | 2015-07-21 12:11:04 -0700 | [diff] [blame] | 21 | </tr> |
| 22 | </table> |
| 23 | </div> |
| 24 | |
| 25 | <div class="table-body"> |
| 26 | <table> |
| 27 | <tr ng-if="!tableData.length" class="no-data"> |
| 28 | <td colspan="3"> |
| 29 | No Items found |
| 30 | </td> |
| 31 | </tr> |
| 32 | |
| 33 | <tr ng-repeat="item in tableData track by $index" |
| 34 | ng-click="selectCallback($event, item)" |
| 35 | ng-class="{selected: item.id === selId}"> |
| 36 | <td>{{item.id}}</td> |
| 37 | <td>{{item.label}}</td> |
| 38 | <td>{{item.code}}</td> |
| 39 | </tr> |
| 40 | </table> |
| 41 | </div> |
| 42 | |
| 43 | </div> |
| 44 | |
Simon Hunt | 84f4c2a | 2015-09-23 17:52:45 -0700 | [diff] [blame^] | 45 | <ov-sample-table-item-details-panel></ov-sample-table-item-details-panel> |
Simon Hunt | e11ce5a | 2015-07-21 12:11:04 -0700 | [diff] [blame] | 46 | </div> |