ItEr55S04ValidacionEProbasFuncionaisItEr54S04: Styled hover effect of grid clickable rows and changed selected row colour

This commit is contained in:
Lorenzo Tilve 2010-04-21 12:40:23 +02:00 committed by Javier Moran Rua
parent b418b80eed
commit 121334daf0
5 changed files with 22 additions and 5 deletions

View file

@ -1140,7 +1140,7 @@ span.z-dottree-line {
tr.z-tree-row-seld, tr.z-list-item-seld,
.z-combobox-pp .z-combo-item-seld {
background-color: #2a83b4;
background-color: #fdd772;
color: #FFFFFF;
}
@ -1262,3 +1262,20 @@ overflow: visible;
.timeTrackedTableWithLeftPane .z-grid-body .z-row-inner {
background-color: #E8E8E8;
}
.clickable-rows tr.z-row:hover .z-row-inner {
background-color: #BCD2EF;
}
.clickable-rows tr.z-row:hover .z-row-cnt {
color: #000000;
}
tr.z-tree-row-seld td.z-row-inner {
background-color: #2A83B4
}
tr.z-tree-row-seld .z-row-cnt {
color: #FFFFFF;
}

View file

@ -22,7 +22,7 @@
<grid id="listing" model="@{controller.orders}" mold="paging"
pageSize="10" fixedLayout="true"
rowRenderer= "@{controller.ordersRowRender}"
onInitRender ="controller.sortOrders();">
onInitRender ="controller.sortOrders();" sclass="clickable-rows">
<columns>
<column label="${i18n:_('Name')}" align="center" sort="auto(name)"/>
<column label="${i18n:_('Code')}" align="center" sort="auto(code)"/>

View file

@ -28,7 +28,7 @@
<separator bar="false" spacing="30px" orient="horizontal"/>
<grid id="listing" model="@{controller.machines}" mold="paging"
pageSize="10" fixedLayout="true">
pageSize="10" fixedLayout="true" sclass="clickable-rows">
<columns>
<column label="${i18n:_('Code')}" sort="auto(code)" />
<column label="${i18n:_('Name')}" sort="auto(name)" />

View file

@ -27,7 +27,7 @@
<separator bar="false" spacing="30px" orient="horizontal"/>
<newdatasortablegrid id="listing" model="@{controller.realWorkers}" mold="paging"
pageSize="10" fixedLayout="true">
pageSize="10" fixedLayout="true" sclass="clickable-rows">
<columns>
<newdatasortablecolumn label="${i18n:_('First name')}" sort="auto(firstName)"/>
<newdatasortablecolumn label="${i18n:_('Surname')}" sort="auto(surname)" />

View file

@ -27,7 +27,7 @@
<separator bar="false" spacing="30px" orient="horizontal"/>
<newdatasortablegrid id="listing" model="@{controller.virtualWorkers}" mold="paging"
pageSize="10" fixedLayout="true">
pageSize="10" fixedLayout="true" sclass="clickable-rows">
<columns>
<newdatasortablecolumn label="${i18n:_('Name')}" sort="auto(name)"/>
<newdatasortablecolumn label="${i18n:_('Capacity')}" sort="auto(capacity)" />