SMART datagrid v.1 > Classes > BarCellRenderer

Back  Forward

DataLudi.BarCellRenderer.showLabel  property

It specifies whether to display the cell value as text. The text is drawn by the font properties of GridStyles and GridStyles.foreground

Defaults to false.

Getter
function showLabel(): Boolean
Setter
function setShowLabel(value: Boolean)
Code -1
    var columns = [{
            name: "Quantity",
            fieldName: "quantity",
            width: 60,
            header: {
                "text": "Quantity"
            },
            renderer: {
                type: "bar",
                minimum: 0,
                maximum: 1000,
                showLabel: true
            }
        },
        ...
    ];
    grid.setColumns(columns);
}
See Also
GridStyles
Examples
BarRenderer