SMART datagrid v.1 > Classes > DataField
The field name
It must be set. And, it should be the only value within DataSet. Although it is case sensitive, it should be set as the only value regardless of case if possible. Since in SMART datagrid module, it is used as a key value, you should specify with the values which are easy to be used.
Defaults to null.
var fields = [{
fieldName: 'addr',
dataType: DataLudi.ValueType.TEXT
}, {
fieldName: 'distance',
dataType: 'number'
},
...
];
dataSource.setFields(fields);