]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard_v2: Add table component
authorStephan Müller <smueller@suse.com>
Thu, 1 Feb 2018 15:00:52 +0000 (16:00 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:05 +0000 (13:07 +0000)
commit41c50f4c5257797b9fa8e488952eca2d63e980f4
tree54b67c6885f6d0a755784bb715e3702afbeb4b55
parent06066f0dda4079cc006ba3b49bef33583f0c8f27
mgr/dashboard_v2: Add table component

The current implementation isn't finished yet, but it's a start.

The ngx-datatable is used as the core of the table component. You can
use the table to show data in a table. You can search, paginate, sort,
refresh the table contents. Multi selection is possible, the details
of the selected items will be given to the specified detail component.

What will be fixed soon?
* Enable the usage of buttons in the table header
* Enable details inline not beneath the table
* Pagination to use a input field to switch pages
* The columns to show can be checked and predefined
* The selection made by the user will be saved in the local storage

Signed-off-by: Stephan Müller <smueller@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard_v2/frontend/package.json
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/components.module.ts [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table-details.directive.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table-details.directive.ts [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.html [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.scss [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.ts [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/shared.module.ts
src/pybind/mgr/dashboard_v2/frontend/src/defaults.scss
src/pybind/mgr/dashboard_v2/frontend/src/openattic-theme.scss