EXT JS 如何修改title的高度

bug仁 2019-12-24 10:16:59
使用sencha cmd 创建一个ext js项目后,发现它默认的titile的高度太高了
如图

这个要怎样修改?
有没有大佬指导一下?
...全文
250 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bug仁 2019-12-25
  • 打赏
  • 举报
回复
引用 2 楼 hankuikui 的回复:
看下图: Window这个控件的Title配置项不仅可以设置为String, 也可设置为Ext.panel.Title,如下代码。

Ext.create('Ext.window.Window', {
    title: {
        xtype:'title',
        height: 50,
        text:'asdf'
    },
    height: 200,
    width: 400,
    layout: 'fit',
    items: {  // Let's put an empty grid in just to illustrate fit layout
        xtype: 'grid',
        border: false,
        // One header just for show. There's no data
        columns: [{ header: 'World' }],
        store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
    }
}).show();

希望可以帮到你
谢谢大佬
cnblog2017 2019-12-24
  • 打赏
  • 举报
回复
看下图: Window这个控件的Title配置项不仅可以设置为String, 也可设置为Ext.panel.Title,如下代码。

Ext.create('Ext.window.Window', {
    title: {
        xtype:'title',
        height: 50,
        text:'asdf'
    },
    height: 200,
    width: 400,
    layout: 'fit',
    items: {  // Let's put an empty grid in just to illustrate fit layout
        xtype: 'grid',
        border: false,
        // One header just for show. There's no data
        columns: [{ header: 'World' }],
        store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
    }
}).show();

希望可以帮到你
bug仁 2019-12-24
  • 打赏
  • 举报
回复
自顶一波,Ext大佬呢

50,528

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧