Revision #4 has been created by Trejder on Mar 22, 2011, 9:18:42 AM with the memo:
Updated information about label/options params of each button.
« previous (#3) next (#5) »
Using CButtonColumn to customize buttons in CGridView
CButtonColumn, CGridView, customize, buttons
For new buttons
you have to specify look and behaviour. **buttons** property of CButtonColumn is used for it. This property is an array of buttons id (which names must correspond to the one provided in
property) and each button is another array holding its specific properties.
Here you can use:
There are similar remarks for these properties like the one described in first part of this text:
1. In PHP expression used for **url** or **visible** properties, you can use variable _$row_ for the row number (zero-based) and _$data_ for the data model for the row.
2. If you provide an empty string for **imageUrl** or set it to false, a textual link will be used instead.
Finally here is an example of introducing new buttons to CButtonColumn: