@extends('layouts.vertical', ['title' => 'Form Select', 'topbarTitle' => 'Form Select']) @section('css') @vite(['node_modules/choices.js/public/assets/styles/choices.min.css', 'node_modules/select2/dist/css/select2.min.css']) @endsection @section('content')
Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.
Single Select
Select2 can take a regular select box like this...
Multiple Select
Select2 can take a regular select box like this...
Set data-choices attribute to set a
default single select.
Set data-choices data-choices-groups
attribute to set option group
Set
data-choices data-choices-search-false data-choices-removeItem
Set
data-choices data-choices-sorting-false attribute.
Set data-choices multiple attribute.
Set
data-choices data-choices-removeItem multiple
attribute.
Set
data-choices data-choices-multiple-groups="true" multiple
attribute.
Set
data-choices data-choices-limit="Required Limit" data-choices-removeItem
attribute.
Set
data-choices data-choices-text-unique-true attribute.
Set
data-choices data-choices-text-disabled-true attribute.