SMART datagrid v.1 > Classes > DataOutputOptions

[ grids ver.1.3.0]   Back  Forward

DataLudi.DataOutputOptions.visibleFields  property

被包含在导出的字段。 

指定一个字段或将两个以上指定为数组。 可以分别指定为字段索引或字段名称。 

如果没有指定这个属性,就会包含所有字段。 而且,如果被包含在[[#.hiddenFields],即使已被包含在这个属性,也不会被包含在导出。 

默认值为null.

Getter
function visibleFields(): [String|Integer]
Setter
function setVisibleFields(value: [String|nteger])
Code -1
    ds.exportToJson({
        hiddenFields: ['country']
    });
See Also
hiddenFields
GridDataSet.exportToJson
GridDataSet.exportToCsv
Examples
网格数据组导出