ExtJS-UI组件-Panel
ExtJS教程汇总:https://www.cnblogs.com/cqpanda/p/16328016.html
转载请注明出处:https://www.cnblogs.com/cqpanda/p/16587500.html
更新记录
2023年1月2日 从笔记迁移到博客。
实例:工具栏#
use an arrow (->) to create an instance of the tbfill/Ext.toolbar.Fill class item.
Ext.create('Ext.panel.Panel', {
title: 'Panel Header',
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
items: [
{
xtype: 'button',
text: 'Click me'
},
//对齐
'->',
//文本
'Docked toolbar at the top'
]
}
],
};
实例:配置多条工具栏#
dockedItems: [
//第一条工具栏
{
xtype: 'toolbar',
dock: 'top',
items: [
{
text: 'Click me'
},
'->',
'Docked toolbar at the top']
},
//第二条工具栏
{
xtype: 'toolbar',
dock: 'bottom',
items: [
{
xtype: 'button',
text: 'Click me'
},
'->',
'Docked toolbar at the bottom'
]
}
],
实例:底部工具栏#
fbar: [
'Docked toolbar at the bottom (on footer)',
{
xtype: 'button',
text: 'Click Me'
}
],
实例:指定工具栏的位置#
//左侧工具栏
lbar: ['lbar'],
//右侧工具栏
rbar: ['rbar'],
//顶部工具栏
tbar: ['tbar'],
//底部工具栏
bbar: ['bbar'],
作者:重庆熊猫
出处:https://www.cnblogs.com/cqpanda/p/17019767.html
版权:本作品采用「不论是否商业使用都不允许转载,否则按3元1字进行收取费用」许可协议进行许可。
本文来自博客园,作者:重庆熊猫,转载请注明原文链接:https://www.cnblogs.com/cqpanda/p/17019767.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通