`<ejs-multiselect id='multiselectelement' [dataSource]='vegetableData' [fields]='fields'[placeholder]='placeholder' [popupHeight]='height'></ejs-multiselect>`
public fields: Object = { groupBy: 'category', text: 'vegetable', value: 'id' };
<ejs-multiselect id='multi-template' [cssClass]="e-multi-column" [dataSource]='multidata' [fields]='multifields' [mode]='box' [placeholder]='multiwatermark'>
<ng-template #headerTemplate>
<table>
<tbody>
<tr>
<th class="e-text-center" style="width: 75px;">ID</th>
<th class="e-text-center" style="width: 75px;">Name</th>
<th class="e-text-center" style="width: 75px;">Category</th>
</tr>
</tbody>
</table>
</ng-template>
<ng-template #itemTemplate let-data>
<table>
<tbody>
<tr>
<td class="e-text-center" style="width: 75px;">{{data.Id}}</td>
<td class="e-text-center" style="width: 75px;">{{data.Vegetable}}</td>
<td class="e-text-center" style="width: 75px;">{{data.Category}}</td>
</tr>
</tbody>
</table>
</ng-template>
</ejs-multiselect> |