Closed joshtynjala closed 1 year ago
Probably related: it would also be nice to be able to react to mouse hovering for the rows to achieve this effect.
https://user-images.githubusercontent.com/49749/227150658-e861ae26-4344-43b0-9ab7-87b6bb7811fe.mp4
@nadako It is worth mentioning that it is currently possible to highlight the entire row on mouse hover, even if the cell renderers have separate background skins.
There's an IPointerDelegate
interface available. If a cell renderer implements this interface, the GridView
will pass in the row as the pointerTarget
for mouse/touch events.
The built-in ItemRenderer
and LayoutGroupItemRenderer
components both implement this interface. LayoutGroupItemRenderer
is a good base class to use if you need to create a custom cell renderer.
Currently, the background skins for a row is composed from separate background skins in each cell renderer. There should be a way to set a single background skin that fills the entire row.