...
Requirements | Other Attributes | Summary |
---|---|---|
|
** If these attributes are not included, then the columns will be the default calculated size. ** | This directive looks for the "table-header" and "table-body" classes, selects all the <td> elements, and sizes them so that table fits within the window. |
...
Sorts the table contents by the header and direction indicated on click.
Example Usage
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<div class="summary-list">
<div onos-sortable-header>
<table>
<tr>
<td colId="id" sortable>ID</td>
<td colId="foo" sortable>Foo</td>
<td colId="bar" sortable>Bar</td>
<td>Baz</td>
</tr>
</table>
</div>
<div>
<table>
<tr ng-repeat="item in tableData track by $index">
<td>{{item.id}}</td>
<td>{{item.foo}}</td>
<td>{{item.bar}}</td>
<td>{{item.baz}}</td>
</tr>
</table>
</div>
</div> |
Requirements | Other Attributes | Summary |
---|---|---|
|
** If you don't include these attributes, then the column won't be sortable. ** | This directive selects all of the <td> elements below the onos-sortable-header attribute and checks if they have the sortable attribute. If it does, then it installs a sort click event on the <td> element. |
onos-flash-changes
Flashes the table rows whose information is new or updated.
...