Can any one explain how to edit clistview pagination.
I want to show only Next and Previous button in clistview. i don’t want other pages like 1,2,3.
Is this possible?
Can any one explain how to edit clistview pagination.
I want to show only Next and Previous button in clistview. i don’t want other pages like 1,2,3.
Is this possible?
Yes it is possible, check this please:
http://www.yiiframework.com/doc/api/1.1/CBaseListView#pager-detail
Thanx. but i don’t know which property will help to hide internal page number. i want only next and previous button on each page.
See image.
hi
see this link
My link
It doesn’t help me. because it shows all internal 1,2,3 buttons.
$this->widget('zii.widgets.CListView', array(
'id'=>'mailbox',
'dataProvider'=>$dataProvider,
'itemView'=>'_list',
'itemsTagName'=>'table',
'template'=>'<div class="block-options pull-left">
<button title="Delete Selected" type="submit" name="button[delete]" value="delete" class="btn btn-effect-ripple btn-danger" id="mailbox-action-delete">
<i class="fa fa-times"></i>
</button>
</div>{pager}
<div class="block-content-full">{items}</div>{summary}',
'loadingCssClass'=>'mailbox-loading',
'ajaxUpdate'=>'mailbox-list',
'afterAjaxUpdate'=>'$.yiimailbox.updateMailbox',
'emptyText'=>'<div style="width:100%"><h3>You have no mail in your '.$this->getAction()->getId().' folder.</h3></div>',
//'htmlOptions'=>array('class'=>'ui-helper-clearfix'),
'sorterHeader'=>'',
'sorterCssClass'=>'mailbox-sorter',
'itemsCssClass'=>'table table-borderless table-striped table-vcenter remove-margin',
'pagerCssClass'=>'mailbox-pager',
));
When i apply
'pagerCssClass'=>'mailbox-pager',
It gives me perfect but i cant set icon in previous and next link as i show in image.