How can I show styled text if a cell is empty?
My datatable has the following column:
TextColumn::make('description')
->label('Description')
->placeholder('empty'),
Instead of simply the text "empty" I want to show this styled version:
'<span class="px-3 py-1 bg-blue-100 text-blue-800 text-sm rounded-full">Empty</span>'
Is this possible?3 Replies