]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard_v2: Easy table cell transformation
authorStephan Müller <smueller@suse.com>
Mon, 12 Feb 2018 17:16:42 +0000 (18:16 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:08 +0000 (13:07 +0000)
commit5ffece425a56f9c9c509d30e93b8a310b32f7813
tree5c54df202dbb154162ebedeabcc5afb00d3c8415
parent8ebde83b6fe4dd07e090b2890f19a22d0ad708fe
mgr/dashboard_v2: Easy table cell transformation

The table column definition is extended by "cellTransformation"
property, which is filled through the use of "CellTemplate" enum.
If you have set that, a specific template reference will be used for
the ngx column property "cellTemplate". All references are stored
at the bottom of the data table template.

Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.ts
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/enum/cell-template.enum.ts [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/models/cd-table-column.ts [new file with mode: 0644]