如何在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
小部件的布局.默认情况下,小部件将基于此模式生成布局. {summary}\n{items}\n{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}\n{items}\n{pager}
. You can control over what appears in the widget like this;
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'layout' => '{items}\n{pager}',
'columns' => [
// ...
],
]);
这篇关于如何在yii2中删除摘要文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文