forked from PnX-SI/gn_module_monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(front): Datatable format and selected row
- Get and display data from group_site database (OK) - Selecting row and get id of row table (OK) Improve : - improve assign colname table outside the component (maybe into the class folder ?) Todo/next: - Filtering table - Add action column to table - refactor code by creating component for the ngx-datable in order to reuse component for other data Reviewed-by: andriac [Refs ticket]: #4
- Loading branch information
Showing
3 changed files
with
159 additions
and
207 deletions.
There are no files selected for viewing
81 changes: 39 additions & 42 deletions
81
frontend/app/components/monitoring-sitesgroups/monitoring-sitesgroups.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,64 @@ | ||
.flex-container { | ||
background-color: rgb(240, 240, 240); | ||
display: flex; | ||
} | ||
|
||
.flex-container > div { | ||
width: 50%; | ||
padding: 10px; | ||
margin: 10px; | ||
} | ||
|
||
.flex-container > div:first-child { | ||
margin-right: 0; | ||
} | ||
background-color: rgb(240, 240, 240); | ||
display: flex; | ||
} | ||
|
||
.scroll { | ||
overflow-y: scroll; | ||
} | ||
|
||
.flex-container > div { | ||
width: 50%; | ||
padding: 10px; | ||
margin: 10px; | ||
} | ||
|
||
:host ::ng-deep .cadre { | ||
background-color: white; | ||
/* border: 1px solid grey;*/ | ||
border-radius: 5px; | ||
padding: 5px; | ||
margin: 5px; | ||
/* display: inline-block; */ | ||
} | ||
.flex-container > div:first-child { | ||
margin-right: 0; | ||
} | ||
|
||
.scroll { | ||
overflow-y: scroll; | ||
} | ||
|
||
/* TABLE */ | ||
:host ::ng-deep .cadre { | ||
background-color: white; | ||
/* border: 1px solid grey;*/ | ||
border-radius: 5px; | ||
padding: 5px; | ||
margin: 5px; | ||
/* display: inline-block; */ | ||
} | ||
|
||
/* TABLE */ | ||
|
||
.cell-link { | ||
cursor: pointer; | ||
.cell-link { | ||
cursor: pointer; | ||
} | ||
|
||
:host::ng-deep .datatable-body-row.active .datatable-row-group { | ||
background-color: rgb(117, 227, 118) !important; | ||
background-color: rgb(117, 227, 118) !important; | ||
} | ||
|
||
.link:hover { | ||
background-color: rgba(0, 0, 0, 0.2) !important; | ||
transition: background-color 0.5; | ||
background-color: rgba(0, 0, 0, 0.2) !important; | ||
transition: background-color 0.5; | ||
} | ||
|
||
.link { | ||
display: inline; | ||
transition: background-color 0.5s; | ||
border-radius: 5px; | ||
display: inline; | ||
transition: background-color 0.5s; | ||
border-radius: 5px; | ||
} | ||
|
||
.header-filter-span > input { | ||
width: 100%; | ||
width: 100%; | ||
} | ||
|
||
.header-sort-span { | ||
/* width: 100%; */ | ||
cursor: pointer; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space:nowrap | ||
/* width: 100%; */ | ||
cursor: pointer; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} | ||
|
||
|
||
.header-sort-span:hover { | ||
background-color: rgb(245, 245, 245); | ||
background-color: rgb(245, 245, 245); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.