Skip to content

Commit

Permalink
Adjust for HTML Columns
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Jun 6, 2024
1 parent abd7d25 commit 272457d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/datatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
@continue($column->isReorderColumn() && !$this->getCurrentlyReorderingStatus() && $this->getHideReorderColumnUnlessReorderingStatus())

<x-livewire-tables::table.td wire:key="{{ $tableName . '-' . $row->{$this->getPrimaryKey()} . '-datatable-td-' . $column->getSlug() }}" :column="$column" :colIndex="$colIndex">
{{ $column->renderContents($row) }}
@if($column->isHtml())
{!! $column->renderContents($row) !!}
@else
{{ $column->renderContents($row) }}
@endif
</x-livewire-tables::table.td>
@endforeach
</x-livewire-tables::table.tr>
Expand Down

0 comments on commit 272457d

Please sign in to comment.