[英]How to remove title of grid panel? - ExtJs
I have one simple grid panel in ExtJs 5 我在ExtJs 5中有一个简单的网格面板
Ext.create('Ext.grid.Panel', {
height: 700,
frame: true,
title: '',
....
});
I want to delete the title of grid (or it is title of panel), but I don't know how. 我想删除网格的标题(或者它是面板的标题),但是我不知道如何。 i set title:'', title:false, deleted it, but the empty div is still there (before column names) How to remove title of grid panel? 我设置标题:'',标题:假,将其删除,但空的div仍然存在(在列名之前)如何删除网格面板的标题?
PS: PS:
hideHeaders: true //it remove all columns names (header of table)
title : String 标题:字符串
The title text to be used to display in the Panel Header. 用于显示在面板标题中的标题文本。 Or a config object for a Panel Title. 或面板标题的配置对象。 When a
title
is specified the Ext.panel.Header will automatically be created and displayed unlessheader
is set tofalse
. 指定title
,除非header
设置为false
否则将自动创建并显示Ext.panel.Header。
So the solution will be to set header
to false
in the configuration: 因此解决方案是在配置中将header
设置为false
:
Ext.create('Ext.grid.Panel', {
height: 700,
frame: true,
header: false,
// ...
});
对于最新版本,请使用config属性preventHeader:true / false true-不会显示标题标头false-将呈现标题标头
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.