Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82127

Is there a way to get DataTables to apply stripe classes to the <td> elements too?

$
0
0
The asStripeClasses feature is awesome. I dynamically create <style> tags when creating my tables based on style choices made by the user and then I use the stripe feature to have DataTables assign those classes to the TR's when building the table, and badda boom badda bing, works perfectly.

My problem is I want to allow people to choose td styling on an alternate row basis, styling like font-size. Because the datatable td cells are not being assigned with a class, my td's are inheriting their styles from places I cannot change (long story). I think my problem would be solved if DataTables put the stripe classes not just on the tr elements but also the td elements they contain.

Any thoughts?

Viewing all articles
Browse latest Browse all 82127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>