如何删除yii2中的摘要文本? [英] How to remove summary text In yii2?
本文介绍了如何删除yii2中的摘要文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的页面中删除附加屏幕截图中显示的行.如何从我的 yii2 项目中编辑此行
I want to remove the line which is show in attached screen shot from my page.How can I edit this from my yii2 project
推荐答案
最好的方法是覆盖 gridView
小部件的布局.默认情况下,widget 会根据这种模式生成布局;{summary}
{items}
{pager}
.您可以像这样控制小部件中显示的内容;
The best way to do this is to override the layout of the gridView
widget. By default, the widget will generate a layout based on this pattern; {summary}
{items}
{pager}
. You can control over what appears in the widget like this;
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'layout' => '{items}
{pager}',
'columns' => [
// ...
],
]);
这篇关于如何删除yii2中的摘要文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文