SMART datagrid v1.4 > Classes

Back  Forward

DataLudi.DataOutputOptions  class

GridDataSet.exportToCsv, GridDataSet.exportToJson 등에서 데이터셋 행들을 내보내기할 때 적용되는 설정 정보 집합. 

Base Classes
DLBase
Constructor
function DataOutputOptions (config: Object);
Properties
booleanFormat
crText
datetimeFormat
footerCallbak
hiddenFields
lfText
nullDateText
quoted
separator
valueCallback
valueCallbacks
visibleFields
Inherited Methods
DLBase.assign
DLBase.getProperties
DLBase.getProperty
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    var s = dsMain.exportToCsv({
        datetimeFormat: 'yyyy/MM/dd',
        quoted: true,
        valueCallbacks: [{
            "cust_id": function (row, field, value) {
                if (value && value.indexOf('(') == 0) {
                    return value + ' Inc.';
                }
                return value;
            }
        }]
    });
    DataLudi.saveTextToFile(s, 'dataludidata.csv');
See Also
GridDataSet.exportToCsv
GridDataSet.exportToJson
Examples
그리드 데이터셋 내보내기