I want to add striping to tables generated by this module, looking at the template there's a flag to apply bootstraps .table-striped
class. I can't seem to find this under the format settings in views, or anywhere else where I'd think this flag would be set.
{%
set classes = [
'table',
'cols-' ~ header|length,
bordered ? 'table-bordered',
condensed ? 'table-condensed',
hover ? 'table-hover',
striped ? 'table-striped',
responsive ? 'responsive-enabled',
sticky ? 'sticky-enabled',
]
%}
I can quickly do this manually with CSS using tr:nth-child(even)
and tr:nth-child(odd)
, but it'd be nice to have it in config for a site that will have less technical site builders working on in the future. :)
Active
2.0
Documentation