SMART datagrid v.1 > Classes > ListCellEditor

Back  Forward

DataLudi.ListCellEditor.labels  property

If specify this item as much as the number of values items, the texts specified by this property instead of values will be displayed in the list of list box. In any case, the value which is actually transferred to data cell is one of the values of values

Defaults to null.

Getter
function labels(): Array
Setter
function setLabels(value: Array)
Code -1
    var columns = [{
            name: "CustomerID",
            fieldName: "CustomerID",
            width: "120",
            editor: {
                type: "list",
                values: ["VN", "HN", "SP", "VC", "TR", "SV"],
                labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
            }
        }, 
        ...
    ];
    grid.setColumns(column);
See Also
values
Examples
List Cell Editor