隐藏 ExtJS 面板标题 [英] Hide ExtJS Panel Title

查看:21
本文介绍了隐藏 ExtJS 面板标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在视口中心区域内有一个 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.

推荐答案

使用面板的 headerheaderAsText 配置选项来隐藏其标题.来自 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆