SMART datagrid v.1 > Classes > IconCellRenderer

Back  Forward

DataLudi.IconCellRenderer.textVisible  property

If specify as false, it will not display the text but only display the icon. When GridStyles.iconLocation 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: "Country",
        fieldName: "Country",
        width: "80",
        imageList: "images1",
        renderer: {
            type: "icon",
            textVisible: false
        },
        dynamicStyles: "iconStyles2",
        styles: {
            iconIndex: 0,
            iconLocation: "left",
            iconAlignment: "center",
            iconOffset: 2
        },
        header: {
            text: "textVisible\n=false"
        }
    },
    ...
    ]);
See Also
IconLocation
GridStyles.iconLocation
Examples
Icon Cell Renderer