Skip to content

Commit

Permalink
Include cssClass on <th> as well as <td> when defined for a column (C…
Browse files Browse the repository at this point in the history
…O-1949)
  • Loading branch information
arlen committed Oct 22, 2021
1 parent 346e7fe commit 476f012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/Standard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function _column_key($modelsName, $c, $tz=null) {
<table id="<?= $vv_tablename . '-table'; ?>">
<tr>
<?php foreach($indexColumns as $col => $cfg): ?>
<th><?php
<th<?= !empty($cfg['cssClass']) ? ' class="' . $cfg['cssClass'] . '"' : ''; ?>><?php
$label = !empty($cfg['label']) ? $cfg['label'] : _column_key($modelsName, $col, $vv_tz);

if(isset($cfg['sortable']) && $cfg['sortable']) {
Expand Down

0 comments on commit 476f012

Please sign in to comment.