yii - Add class to textbox in CGridView -


as know in cgridview there textbox allows filter data. how add class textbox, like: <input type="text" class="">

enter image description here

taken the forum:

$this->widget('zii.widgets.grid.cgridview', array     (             'id'=>'your-grid',             'dataprovider'=>$model->search(),             'filter'=>$model,             'columns'=>array             (                     'id',                     array                     (                             'name'=>'attr',                             'filter'=>chtml::textfield('attr', '', array('class'=>'asdf')),                     ),                     ..             ),     )); 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -