读书人

CButtonColumn设立CGridView的操作按钮

发布时间: 2012-07-05 07:59:18 作者: rapoo

CButtonColumn设置CGridView的操作按钮

'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.    '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.)
?

更详细可看下面URL:

http://www.yiiframework.com/wiki/106/using-cbuttoncolumn-to-customize-buttons-in-cgridview

读书人网 >开源软件

热点推荐