...
import {CarbonListComponent} from '@valtimo/components';
...
export class SampleComponent {
...
// We need access to the carbonListComponent in order to get the selected items.
@ViewChild(CarbonListComponent) carbonListComponent: CarbonListComponent<any>;
...
public sampleAction(): void {
const selectedItems = this.carbonList.selectedItems;
// Code to process selected items
}
...
}
...
This will create a list with multi-select enabled: