Enhanced select component for Bootstrap 5.3 with search, tags, and grouping capabilities.
Simple multiple selection with search functionality.
const multiSelect = new MultiSelect('#basic-select', {
searchable: true,
placeholder: 'Select languages...',
showTags: true
});
Options organized by categories with custom group headers.
const groupedSelect = new MultiSelect('#grouped-select', {
searchable: true,
groupBy: 'category',
maxSelections: 6,
sortSelected: true
});
Custom option and tag templates with rich content.
const customSelect = new MultiSelect('#custom-select', {
customRenderer: (option) => {
return `<div class="d-flex align-items-center">
<div class="avatar me-2">${option.avatar}</div>
<div>
<div>${option.text}</div>
<small>${option.role}</small>
</div>
</div>`;
}
});
Different component sizes to match your design.
Programmatic control of the component.
Integration with Bootstrap form validation.