widget - Yii CGridView tbody td set attributes -
Hello I need to create a table with T, TR and TD, for example:
& lt; Table & gt; & Lt; Tbody id = "sortable1" class = "droptrue" & gt; & Lt; Tr & gt; & Lt; Td square = "ui-state-default" & gt; Can be removed .. & lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Td square = "ui-state-default" & gt; Can be removed .. & lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Td square = "ui-state-default" & gt; Can be removed .. & lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Td square = "ui-state-default" & gt; Can be removed .. & lt; / Td> & Lt; / Tr & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;
I'm using Yii CGridView (this widget is required)
$ this-> Widgets ('bootstrap.widgets.TbGroupGridView', array ('id' => 'command table', 'type' = & gt; 'striped thick', 'dataProvider' => $ orders- & gt; Search (), 'filter' = & gt; $ command, 'ajaxUpdate' = & gt; right, 'column' = & gt; array (array ('header' = & gt; 'id', 'value' = & Gt; 'Adminhelper :: getRowNumber ($ line, @ $ _ GET ["OrderModel_page"]),),' name ',' model ',' iii ',' provider ', array (' title = ' 'PayPal', 'Value' '), Array (' = 'of' AAAA ',' value '=' gt; 'Adminhelper:: GetInfoButton ($ d ('Header' = & gt; 'Статус', 'value' = 'Adminhelper :: getStatusButton ($ data)'), array ('header' => 'copy') 'Adminhelper :: getCopyButton ($ data)'), array ('='> 'Статус', 'value' = & gt; Adminhelper :: getDeleteButton ($ data ) ',),),
How can I set the square and the ID for the TD tag, and classes for classes? I could not find it in the CGridView class context, but I think it can be configured by HTMLOptions. Thanks for the help!
Have you tried this:
array ' & Gt; ' Статус ',' value '= & gt; Adminhelper :: getDeleteButton ($ data) ',' htmlOptions' = & gt; You can not define the class for the array ('class' => gt; td-square-here ')),
tag, but you can specify it in table ' Id '= & gt; The order-table is defined for '
, so that you enter $ (' # order-table tbody ') to enter
Updates: You can not catch ajaxUpdate paging event, but before you can use the Widgets update, the Aztecs update event, like this:
'afterAjaxUpdate' = & gt; 'Function (id, data) {/ * js-code there * /}'
Comments
Post a Comment