You need to sign in to do that
Don't have an account?
kmorf_entransform
changing row colors of pageBlockTable
Hi, im trying to make a pageBlockTable where if someone clicks on a certain row on the table, then the color of that row will change. how could i do that?
Use the onRowClick JS function to modify the behavior's row click action. Here's a trivial example:
The controller in this case doesn't particularly matter (it's just a wrapper class and a constructor). The magic here is the onRowClick function; here I make it a toggle switch. The function itself receives the TR (HTML table row element) as the single input, which can be directly modified to adjust that row.
All Answers
Use the onRowClick JS function to modify the behavior's row click action. Here's a trivial example:
The controller in this case doesn't particularly matter (it's just a wrapper class and a constructor). The magic here is the onRowClick function; here I make it a toggle switch. The function itself receives the TR (HTML table row element) as the single input, which can be directly modified to adjust that row.
ok, works fine, thanks