SMART datagrid v.1 > Classes > ButtonCellRenderer

[ grids ver.1.2.9]   Back  Forward

DataLudi.ButtonCellRenderer.disabledImageUrl  property

The URL of image of disabled button. 

If do not specify this value, it will display the image which has been specified in imageUrl

Defaults to null.

Getter
function disabledImageUrl(): String
Setter
function setDisabledImageUrl(value: String)
Code -1
    var columns = [{
        name: "column1",
        renderer: {
            type: "button",
            disabledImageUrl : "img/btn_disabled.png"
        }
    },
    ...
    ];
    grid.setColumns(columns);
Code -2
    $("#changeImage").click(function () {
        var col = grid.columnByName('column1');
        col.setRenderer({ 
            disabledImageUrl : "img/btn_disabled.png"
        });
    });
See Also
imageUrl
activeImageUrl
hoveredImageUrl
disableHoveredImageUrl
Examples
Image Button Renderer