SMART datagrid v.1 > Classes > DataField

[ grids ver.1.3.5]   Back  Forward

DataLudi.DataField.keyPath  property

The path of representative value of object which is saved in OBJECT field. 

If it is not the property just below the object, you can separate by ".* to specify in stages. If specify keyCallback, this property will be ignored. 

Defaults to null.

Getter
function keyPath(): String
Setter
function setKeyPath(value: String)
Code -1
    ds.setFields([{
        fieldName: 'company',
        dataType: 'object',
        keyPath: "name",
        // If it is not just below
        // keyPath: "name.first"
        ...
    }]);
See Also
keyCallback
compareCallback
dataType
ValueType
Examples
Object Field