Add class on tableWindow

Game development with Board Game Arena Studio
Post Reply
User avatar
Ralchimist
Posts: 14
Joined: 09 May 2020, 10:46

Add class on tableWindow

Post by Ralchimist »

Hi!

I would like to add a class on one td in tableWindow.
Someone knows how to do this?

Thx
User avatar
RicardoRix
Posts: 2541
Joined: 29 April 2012, 23:43

Re: Add class on tableWindow

Post by RicardoRix »

dynamically with dojo.addClass();

permanently with class="myClass"
User avatar
Nisterius
Posts: 26
Joined: 23 June 2020, 04:36

Re: Add class on tableWindow

Post by Nisterius »

I wonder this as well. I can't find anything in the documentation about how to "hook" into any given cell except with `'type'=>"header"`
User avatar
RicardoRix
Posts: 2541
Joined: 29 April 2012, 23:43

Re: Add class on tableWindow

Post by RicardoRix »

Can you give each td cell an id? say 'table_cell_1_2' and there is your hook.
User avatar
Tisaac
Posts: 2736
Joined: 26 August 2014, 21:28

Re: Add class on tableWindow

Post by Tisaac »

What about using css selector instead ? :nth-child, :nth-of-type, :first, :last,...
Post Reply

Return to “Developers”