SMART datagrid v1.4 > Classes > CustomButton

[ grids ver.1.4.4]   Back  Forward

DataLudi.CustomButton.enabledCallback  property

버튼의 enable, disable 상태를 리턴하는 콜백 함수. 

function (index:CellIndex);

Getter
function enabledCallback(): Function
Setter
function setEnabledCallback(value: Function)
Note
Code -1
    grid.setColumns([{
        name: "colDesc",
        customButtons: [{
            visibility: DataLudi.ButtonVisibility.ALWAYS,
            enabledCallback: function (index) {
                return false;
            },
            imageUrl: 'images/add_up.png',
            hoverUrl: 'images/add_up.png',
            downUrl: 'images/add_down.png'
        }, {
        },
        ...
        ]
    },
    ...
    ]);
See Also
visibility
imageWidth
imageUrl
downUrl
hoverUrl
callback
displayCallback
GridBase.onCellButtonClicked
Examples
Custom Buttons
DataCell Buttons