Hi Michael,
Thank you for contacting Syncfusion support.
To use MultiSelect component in CheckBox mode, make sure that you have imported the MultiSelectAllModule in the app.module.ts file
[app.module.ts]
import { MultiSelectAllModule } from '@syncfusion/ej2-ng-dropdowns';
@NgModule({
imports: [ BrowserModule,DialogModule, FormsModule ,DropDownListModule,MultiSelectAllModule,CheckBoxModule],
})
|
Now you need to define the mode as string. Kindly refer to the below code.
[app.component.ts]
public mode: string = 'CheckBox'; |
[app.component.html]
<ejs-multiselect id='multiselectelement' #sample [dataSource]='countries' [fields]='localFields' [placeholder]='localWaterMark' [mode]='mode' [hideSelectedItem] = 'false' [value]='value1'>
</ejs-multiselect> |
Regards,
Prince