Skip to content

Commit

Permalink
Merge pull request #607 from Laravel-Backpack/add-select2-from-array-…
Browse files Browse the repository at this point in the history
…sortable

add select2 from array sortable option
  • Loading branch information
pxpm authored Oct 8, 2024
2 parents ac75a83 + 4b44a11 commit 29b8a63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 6.x/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,7 @@ CRUD::field([ // select2_from_array
'allows_null' => false,
'default' => 'one',
// 'allows_multiple' => true, // OPTIONAL; needs you to cast this to array in your model;
// 'sortable' => true, // requires the field to accept multiple values, and allow the selected options to be sorted.
]);
```

Expand Down

0 comments on commit 29b8a63

Please sign in to comment.