Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142628 | Feb 12,2019 06:22 PM UTC | Feb 14,2019 10:44 AM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: AutoComplete |
(window as any).translate = function (str: string) {
return str.toUpperCase();
}
let groupList: AutoComplete = new AutoComplete({
dataSource: (data as any).vegetableData,
fields: { groupBy: 'Category', value: 'Vegetable' },
placeholder: 'Select vegetables',
groupTemplate: '<strong>${translate(data.Category)}</strong>'
});
groupList.appendTo('#group'); |
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.