javascript - ExtJS 5 grid with grouping feature: Selected row with box shadow -


i'd add box shadow selected row in grid uses grouping feature. applied box shadow table element of selected row:

.x-grid-item-selected {     box-shadow: 0 0 6px 2px rgb(119, 119, 119) inset; } 

unfortunately, table element of first row in group contains group header gave me result when selected first row in group:

enter image description here

also can't apply box shadow tr element of grid row (.x-grid-item-selected .x-grid-row) since chrome doesn't support box shadows on tr elements (at least not without setting display property block break layout completely).

applying box shadow each cell (.x-grid-item-selected .x-grid-cell) doesn't give me desired neither:

enter image description here

here's how i'd selected row (just sake of completeness):

enter image description here

in extjs 4 able accomplish using rowwrap feature removed extjs 5.

i'd appreciate if give me this!

here's fiddle play around with: https://fiddle.sencha.com/#fiddle/jkv

thanks & best regards

ps.: i've asked question on sencha forums

with suggestion of arthurakay commented above in mind able find suitable solution using linear-gradients instead of box shadows looks this:

.x-grid-item-selected .x-grid-cell {     background:         linear-gradient(top, rgb(119, 119, 119), transparent 6px),         linear-gradient(bottom, rgb(119, 119, 119), transparent 6px);      // browser specific prefixed versions... }  .x-grid-item-selected .x-grid-cell:first-child {     background:          linear-gradient(top, rgb(119, 119, 119), transparent 6px),         linear-gradient(bottom, rgb(119, 119, 119), transparent 6px),         linear-gradient(left, rgb(119, 119, 119), transparent 6px);      // browser specific prefixed versions... }  .x-grid-item-selected .x-grid-cell:last-child {     background:          linear-gradient(top, rgb(119, 119, 119), transparent 6px),         linear-gradient(bottom, rgb(119, 119, 119), transparent 6px),         linear-gradient(right, rgb(119, 119, 119), transparent 6px);      // browser specific prefixed versions... } 

since still cumbersome, i'd appreciate more input solve in more "elegant" way.

here's working fiddle: https://fiddle.sencha.com/#fiddle/jrh

thanks & best regards


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -