Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149586 | Dec 2,2019 11:47 AM UTC | Dec 5,2019 01:18 PM UTC | Angular - EJ 2 | 4 |
![]() |
Tags: MultiSelectDropdown |
@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,
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.