隐藏分页摘要文本 [英] Hidden Pagination summary text

查看:127
本文介绍了隐藏分页摘要文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Yii中使用CGridView来创建表.

I use CGridView in Yii to create tables.

我想用分页显示我的表格,但在顶部隐藏摘要文本,该文本指示页面剩余的数量(显示1-4,共4个结果.)

I would like to show my table with pagination but hide the summary text at the top, which indicates the number of page restance (Displaying 1-4 of 4 results.)

有可能吗? 谢谢

对不起,我的英语

推荐答案

有一个template选项.默认情况下,它等于{summary}\n{items}\n{pager}

There is a template option. By default it equals {summary}\n{items}\n{pager}

如果您在gridview配置中覆盖它,则可以删除摘要部分:

If you override it in your gridview config, you'l be able to remove summary section:

$this->widget(
                'zii.widgets.CGridView',
                array(
                    Your options here ...
                    'template' => '{items}\n{pager}',
                )
            );

这篇关于隐藏分页摘要文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆