SMART datagrid v.1 > Classes > ShapeCellRenderer

Back  Forward

DataLudi.ShapeCellRenderer.textVisible  property

If specify as false, it will not display the text but only display the shape. 

When GridStyles.shapeLocation is CENTER, the text will not be displayed either. 

Defaults to true.

Getter
function textVisible(): Boolean
Setter
function setTextVisible(value: Boolean)
Code -1
    grid.setColumns([{
        name: "Quantity",
        fieldName: "Quantity",
        type: "data",
        width: 70,
        renderer: {
            type: "shape",
            textVisible: false
        },
        styles: {
            textAlignment: "far"
        },
        dynamicStyles: [{
            expression: "value > 40",
            styles: {
                shapeName: "star",
                shapeColor: "#ff00ffcc",
                shapeLocation: "center"
            }
        }],
        header: {
            text: "Quantity"
        }
    },
    ...
    ]);
See Also
GridStyles.shapeLocation
sizeRate
Examples
Shape Cell Renderer