The properties of string columns are as follows.
- Properties : name, text, type, editable, visible, align, width, className.
- TbsGrid uses lowercase letters for property or option key values.
// Examples
let columns = [
{ name: 'area', header: { text: 'area' }, width: 150, type: 'string', className: 'tbs-blue' }, // css className
{ name: 'manager', header: { text: 'manager'}, width: 100, type: 'string' },
{ text: "header Text 1", children: [ // parent header column
{name: 'amt1', header: { text: 'amt1' }, width: 100, type: 'number' },
{name: 'amt2', header: { text: 'amt2' }, width: 100, type: 'number' } ]},
{ text: "header Text 2", children: [ // parent header column
{ name: 'amt3', header: { text: 'amt3'}, width: 100, type: 'number' },
{ text: "header Text 3", children: [
{name: 'amt4', header: { text: 'amt4'}, width: 100, type: 'number' },
{name: 'amt5', header: { text: 'amt5'}, width: 100, type: 'number' } ]}
]
},
{name: 'note', header: { text: 'note'}, width: 100, type: 'string' }
];