I just implemented a grid with a few columns, each rendered with a ComponentRenderer (the “cell-components” which get rendered are created via polymer-templates).
The first column contains a button, which triggers the setDetailsVisible method for the associated item/row.
Now i’m struggelling with the point that the polymer side inside the cell-component never knows if it its inside a opened details row or not.
(I want to change the icon of the button, depending on its state)
Thanks for your answer - so there is nothing on the client side which tells the cell in the row if the details are visible? like a class in a parent element or else?
So i’d have to set a class manually via java if the details are visible or not?
Not really, the row doesn’t have anything different on it for when the details row (which is a different element) is opened.
The best way is to add a property in your model that is used when the details row is opened, and then use that property in any other place in the Grid, in a Polymer way.