We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ce32a commit 2e95b3eCopy full SHA for 2e95b3e
src/UI/Component/DataTables.php
@@ -280,6 +280,13 @@ public function setMessageIfNoRowsFound(string $messageId)
280
public function setColumnAlignByArray(array $columnsAlign)
281
{
282
foreach ($columnsAlign as $columnNumber => $align) {
283
+ // replace left/right (style tags) with start/end (datatables classes)
284
+ if ($align === 'left') {
285
+ $align = 'start';
286
+ } elseif ($align === 'right') {
287
+ $align = 'end';
288
+ }
289
+
290
$this->datatablesColumnDefs[] = '{ targets: ' . $columnNumber . ', className: \'text-' . $align . '\' }';
291
}
292
0 commit comments