@Component({
selector: 'app-root',
template: `<ejs-multiselect id='multiselectelement' [dataSource]='sportsData' [fields]='fields' [mode]='mode' [selectAllText]='selectAllText' showSelectAll=true [placeholder]='placeholder'></ejs-multiselect>`,
providers: [CheckBoxSelectionService]
})
import { MultiSelectAllModule } from '@syncfusion/ej2-angular-dropdowns';
|
<ejs-multiselect name="skillname" [(ngModel)]='value' [dataSource]='countries' [fields]='checkFields' [mode]='mode'>
</ejs-multiselect> |
ngOnInit(): void {
this.value=['AU','BM'];
} |
Your response to Query1: We have checked the reported requirement. Since CheckBoxSelectionService module is injectable we have Injected the module in the MultiSelectAllModule. So you no need to provide the module at every time. You can import the MultiSelectAllModule from the dropdowns components. Please refer the below code snippet,