Я пытаюсь отобразить текстовое поле в столбце компонента ng2-smart-table.
Ссылочная документация ng2-smart-table , но текстовое поле по-прежнему не отображается. Не могли бы вы помочь решить эту проблему.
В файле component.ts:
setting = {
multimode:true,
hideSubHeader:true,
actions: false,
columns: {
NAME:
{
title: 'Name'
},
VALUE: {
title: 'Value',
type:'text',
editor:{
type:'text'
}
}
},
attr:
{
class: 'table table-bordered'
}
}
В файле component.html:
<ng2-smart-table [settings]="setting" [source]="ConfigureSource" ></ng2-smart-table>
В файле ConfigureSource.ts:
export const ConfigureData: Array<any> = [
{
"Name": "John",
"Value": ""
},
{
"Name": "Sam",
"Value": ""
}
];