Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Merge pull request #5680 from Laravel-Backpack/add-separator-to-selec…
Browse files Browse the repository at this point in the history
…t_multiple

add separator to select_multiple column
  • Loading branch information
pxpm authored Oct 8, 2024
2 parents bf39d82 + 2df3388 commit 9ed23aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resources/views/crud/columns/select_multiple.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$column['suffix'] = $column['suffix'] ?? '';
$column['limit'] = $column['limit'] ?? 32;
$column['attribute'] = $column['attribute'] ?? (new $column['model'])->identifiableAttribute();
$column['separator'] = $column['separator'] ?? ',';
if($column['value'] instanceof \Closure) {
$column['value'] = $column['value']($entry);
Expand Down Expand Up @@ -40,7 +41,7 @@
@endif
@includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end')

@if(!$loop->last), @endif
@if(!$loop->last){{$column['separator']}}@endif
</span>
@endforeach
{{ $column['suffix'] }}
Expand Down

0 comments on commit 9ed23aa

Please sign in to comment.