Skip to content

Commit 4d6e2e3

Browse files
authored
Update HasTable.php
Override HTML title if it exists.
1 parent eb448ac commit 4d6e2e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Html/HasTable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ protected function compileTableHeaders()
124124
foreach ($this->collection->toArray() as $row) {
125125
$thAttr = $this->html->attributes(array_merge(
126126
Arr::only($row, ['class', 'id', 'title', 'width', 'style', 'data-class', 'data-hide']),
127-
$row['attributes']
127+
$row['attributes'],
128+
isset($row['html-title']) ? ['title' => $row['html-title']] : [],
128129
));
129130
$th[] = '<th ' . $thAttr . '>' . $row['title'] . '</th>';
130131
}

0 commit comments

Comments
 (0)