隐藏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.
推荐答案
使用面板上的头
或 headerAsText
配置选项以隐藏其标题。从 ExtJS API文档:
Use either the header
or headerAsText
config option of panel to hide its title. From ExtJS API documentation:
标题:布尔值
true创建Panel的标题
元素显式,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:Boolean
headerAsText : Boolean
true显示
标题中的面板标题,假
隐藏(默认为true)。
true to display the panel title in the header, false to hide it (defaults to true).
这篇关于隐藏ExtJS面板标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!