Hi,
how do i remove individual buttons (update, create or delete) from the CButtonColumn.
Thx in advance.
Hi,
how do i remove individual buttons (update, create or delete) from the CButtonColumn.
Thx in advance.
Check the documentation of CbuttonColumn template.
You can specify wich button show.
For example:
[...]
'CButtonColumn'=>array('template'=>'{update} {delete}')
now i made my own buttons.
Thx for help
You can also add new button to CButtonColumn, you have just to set the button property.
For example this way:
array
(
'class'=>'CButtonColumn',
'template'=>'{update}{delete}{up}{down}',
'buttons'=>array
(
'up' => array
(
'label'=>'[+]',
'url'=>'"#"',
'visible'=>'1',
'options'=>array('onclick'=>$data->id),
),
),
),
Seems to be self-explanatory…
I wrote a cookbook article about it. Maybe it will help you in this matter?