Add sort functionality to table Component
Added optional sort function to the shared table component.
Table sort is not implemented on any existing table, but will
be used in the redesigned Event Log table.
- Changed table model attribute to two separate properties
data and header to take advantage of $onChanges lifecycle
hook
- Update local user table and user role table to account for
these updates
Tested on Chrome, Safari, Firefox, Edge, IE
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I4fe68e78ae9d1228d7d9350538f61076036b1089
diff --git a/app/users/controllers/user-accounts-controller.html b/app/users/controllers/user-accounts-controller.html
index 76df616..696a984 100644
--- a/app/users/controllers/user-accounts-controller.html
+++ b/app/users/controllers/user-accounts-controller.html
@@ -23,7 +23,8 @@
</div>
<!-- Local user table -->
<bmc-table
- model="tableModel"
+ data="tableData"
+ header="tableHeader"
row-actions-enabled="true"
emit-action="onEmitAction(value)"
class="local-users__table">
@@ -36,4 +37,4 @@
<role-table></role-table>
</div>
</div>
-</div>
+</div>
\ No newline at end of file