Why not set tr class on fnOpen?

Why not set tr class on fnOpen?

bjnebjne Posts: 3Questions: 0Answers: 0
edited January 2011 in General
When adding rows using fnOpen, class is only set on td, and not tr.
This can make certain problems with for example css if i want the
"details" column opened to have similar color as the row above..

tr.odd + tr.details {
background-color: #ff0000;
}

I could ofcorse fix this here, but I think this may be something that
should be added to main distribution if there are no major reasons
not to..

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    No there was no specific reason why it was do that way - I just figured that since the TD element is taking up all of the TR element (due to the colspan), thus causing the TR and TD to take up the same visual space, that there was little difference between putting it on the TR or TD. I opted for the TD in the end - but it can readily be modified.

    Allan
This discussion has been closed.