I'd like to build a 'Toggle' button that will change data table column value every time it is clicked.

I currently have 2 pages in my dashboard. Each page uses the same data table but with a different value for two columns.

Example:

PAGE 1: ColA = 'xyz' and colB = '123'

PAGE 2: ColA = 'pqr'

I want to create a button on a single page that will toggle between the column values everytime it is clicked. In that way, I can have a single page that displays the same data table albeit with different columns values.

Thanks!

(1) Answer

Login