SMART datagrid v.1 > Classes > ButtonCellRenderer

[ grids ver.1.2.9]   Back  Forward

DataLudi.ButtonCellRenderer.textOnImage  property

The property which specifies whether to sort the text based on button image. 

If it is true, it will sort the text based on image, and if it is false, it will sort the text based on entire cells. 

Defaults to true.

Getter
function textOnImage(): Boolean
Setter
function setTextOnImage(value: Boolean)
Code -1
    var columns = [{
        name: "column1",
        renderer: {
            type: "button",
            textOnImage : false
        }
    },
    ...
    ];
    grid.setColumns(columns);
Code -2
    $("#changeAlign").click(function () {
        var col = grid.columnByName('column1');
        col.setRenderer({ 
            textOnImage : false
        });
    });
See Also
textVisible
textPadding
text
Examples
Image Button Renderer