How To Use Php Expression For Label In Cbuttoncolumn

buttonID’ => array(

'label'=>'...',     // text label of the button

'url'=>'...',       // a PHP expression for generating the URL of the button

'imageUrl'=>'...',  // image URL of the button. If not set or false, a text link is used

'options'=>array(...), // HTML options for the button tag

'click'=>'...',     // a JS function to be invoked when the button is clicked

'visible'=>'...',   // a PHP expression for determining whether the button is visible


According to the documentation, you can only set a string to the label index. Is there anyway I can do pass a PHP expression like this:

buttonID’ => array(

'label'=>'($data->enabled == 1) ? "Disable" : "Enable"', 



‘label’=>(1==4)? “sample1”:“sample2”

Thanks! I edited my question slightly. I actually want to access the special $data variable.