when i'm trying to edit/create data in smart table how to auto fill the data in the cell. I tried with completer but it is showing me no results.
export const dataTable = [];
export const dataTablesettings ={
hideheaders: true,
actions: {
add:true,
edit:true,
delete:true,
columnTitle: 'Actions',
},
noDataMessage: 'No data found',
columns: {
ItemCode: {
title: 'Code',
type: 'string',
filter: true,
editable: true,
editor: {
type: 'completer',
config: {
completer: {
data: dataTable,
searchFields: 'ItemCode',
titleField: 'ItemCode',
},
},
}
},
}
}