Twitter bootstrap Yii framework bootstrap-获取TbEditableColumn enabled属性以使用表达式而不是布尔值

Twitter bootstrap Yii framework bootstrap-获取TbEditableColumn enabled属性以使用表达式而不是布尔值,twitter-bootstrap,yii,Twitter Bootstrap,Yii,有没有办法让TbEditableColumnenabled属性使用表达式而不是布尔值(即:true) 以下是我正在尝试做的一个示例: array( 'class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'description', 'editable' => array( 'type' => 'textarea', 'url' => $this->createUr

有没有办法让
TbEditableColumn
enabled属性使用表达式而不是布尔值(即:true)

以下是我正在尝试做的一个示例:

array(
  'class' => 'bootstrap.widgets.TbEditableColumn',
  'name' => 'description',

  'editable' => array(
       'type' => 'textarea',
   'url' => $this->createUrl('classification/update'),
   'placement' => 'top',
       'enabled' => '($data->status > 0) ? true : false;',
  )
),
应该注意的是,当使用如下
bootstrap.widgets.TbButtonColumn
时,这与visible属性一起工作:

array(
'class' => 'bootstrap.widgets.TbButtonColumn',
'deleteConfirmation' => 'Are you sure you wish to delete this classification?',
'template' => '{delete}',

'buttons'=>array(
    'delete' => array(
    'visible' => '($data->status > 0) ? true : false;',
)
), 

任何帮助都将不胜感激。

请确保您没有设置列的“值”-阅读代码: 您是否尝试过使用“应用”=>true而不是启用