[英]Changing page labels (clistview, cgridview) witout changing pager css (bootstrap)
When I set 'pager' in CGridView it change bootstrap look, I try with cssFile to null or false, it doesn't work. 当我在CGridView中设置'pager'时,它会改变引导外观,我尝试将cssFile设置为null或false,这是行不通的。
'pager' => array(
'class' => 'CLinkPager',
'firstPageLabel' => '<<',
'prevPageLabel' => 'smthprev',
'nextPageLabel' => 'smthnext',
'lastPageLabel' => '>>',
),
The Bootstrap extension checks if htmlOptions['class'] is set , ie : isset($htmlOptions['class']), so if we set empty class, then it should work. Bootstrap扩展会检查是否设置了htmlOptions ['class'],即:isset($ htmlOptions ['class']),因此,如果我们设置空类,则它应该可以工作。 So add this:
因此添加:
'pager' => array(
// rest of code
'htmlOptions'=>array('class'=>'')
),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.