Back
This example shows a multi-select autocomplete where selected tags are displayed inline within the input field, and a clear button is used.
const skillAutocomplete = new AvalynxAutocomplete('#skillSearch', {
data: skills,
maxSelections: 5,
tagsPosition: 'inline',
clearStyle: 'button',
onChange: (keys, values) => console.log('Skills:', keys, values)
}, {
placeholder: 'Add skills (max. 5)...',
noResults: 'No skills found',
removeTitle: 'Remove'
});
AvalynxAutocomplete on GitHub Avalynx on GitHub