SMART datagrid v.1 > Classes > ValueColumn

Back  Forward

DataLudi.ValueColumn.displayCallback  property

Callback function which returns the text to be displayed in cell included in this column. 

function (index:CellIndex, value):String;

If set this property, the export formats specified in Column Style will be ignored. 

Defaults to null.

Getter
function displayCallback(): Function
Setter
function setDisplayCallback(value: Function)
Code -1
    column.setDisplayCallback(function (index, value) {
        return value.substr(0, 3) + '-' + value.substr(3);
    });
See Also
GridStyles.numberFormat
GridStyles.datetimeFormat
GridStyles.booleanFormat
Examples
Column Styles