隐藏 ExtJS 面板标题 [英] Hide ExtJS Panel Title
问题描述
我在视口中心区域内有一个 ExtJS 面板.我想隐藏面板的标题.我该怎么做?我正在使用 xtype config
来声明面板.
I have a ExtJS panel inside a viewport center region. I want to hide the title of the panel. How can I do it? I'm using xtype config
for declaring the panel.
推荐答案
使用面板的 header
或 headerAsText
配置选项来隐藏其标题.来自 ExtJS API 文档:
Use either the header
or headerAsText
config option of panel to hide its title. From ExtJS API documentation:
标题:布尔值
true 创建面板的标题显式元素,false 跳过创建它.如果设置了标题标题将自动创建,否则不会.如果标题是设置但标题明确设置为false,标题不会是呈现.
true to create the Panel's header element explicitly, false to skip creating it. If a title is set the header will be created automatically, otherwise it will not. If a title is set but header is explicitly set to false, the header will not be rendered.
和
headerAsText : 布尔值
headerAsText : Boolean
显示为真标题中的面板标题,false隐藏它(默认为 true).
true to display the panel title in the header, false to hide it (defaults to true).
这篇关于隐藏 ExtJS 面板标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!