Skip to content

Commit 1bc72c1

Browse files
committed
add prefix and suffix for text column
1 parent 2c87086 commit 1bc72c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resources/views/crud/columns/text.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
66
$column['escaped'] = $column['escaped'] ?? true;
77
$column['limit'] = $column['limit'] ?? 40;
8-
$column['text'] = Str::limit($value, $column['limit'], '[...]');
8+
$column['prefix'] = $column['prefix'] ?? '';
9+
$column['suffix'] = $column['suffix'] ?? '';
10+
$column['text'] = $column['prefix'].Str::limit($value, $column['limit'], '[...]').$column['suffix'];
911
@endphp
1012

1113
<span>

0 commit comments

Comments
 (0)