Is it possible to configure the lightning-combobox to allow multiple selections? I tried this method:
import { LightningElement, track } from 'lwc';
export default class ComboboxBasic extends LightningElement {
@track value = '';
selectedVals = [];
get options() {
return [
{ label: 'New', value: 'new' },
{ label: 'In Progress', value: 'inProgress' },
{ label: 'Finished', value: 'finished' },
];
}
handleChange(event) {
this.selectedVals.push(event.detail.value);
this.value = this.selectedVals.join(', ');
}
}
but this doesn't keep mark the selected values in the drop down with the check mark. Is there a better method to implement some sort of Drop down, checkbox, selector
?
lightning-dual-listbox
?