Add basic checkbox support to new grids.

Also:

 * Add 'creatable', 'editable' etc. to master view class.
 * Add styles for warning/notice grid rows.
 * Misc. other tweaks.
This commit is contained in:
Lance Edgar 2015-08-14 15:30:38 -05:00
parent e79531fda8
commit d2b065a8fc
13 changed files with 229 additions and 71 deletions

View file

@ -44,7 +44,6 @@ p {
}
.right {
float: right;
text-align: right;
}

View file

@ -133,18 +133,46 @@
* tbody
******************************/
.newgrid table tbody td {
.newgrid tbody td {
padding: 5px 6px;
}
.newgrid table tbody tr:nth-child(odd) {
.newgrid.selectable tbody td {
cursor: default;
}
.newgrid tbody tr:nth-child(odd) {
background-color: #e0e0e0;
}
.newgrid table tbody tr.hovering {
.newgrid tbody tr.hovering {
background-color: #bbbbbb;
}
.newgrid tbody tr.notice {
background-color: #fd6;
}
.newgrid tbody tr.notice:nth-child(odd) {
background-color: #fe8;
}
.newgrid tbody tr.notice.hovering {
background-color: #ec7;
}
.newgrid tbody tr.warning {
background-color: #fcc;
}
.newgrid tbody tr.warning:nth-child(odd) {
background-color: #ebb;
}
.newgrid tbody tr.warning.hovering {
background-color: #daa;
}
/******************************
* main actions