Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147366 | Sep 7,2019 09:10 PM UTC | Sep 11,2019 10:35 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: MultiSelectDropdown |
`<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> |
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.