ExtJS 布局-Center布局(Center layout)
2024-09-08 13:43:10
更新记录:
2022年6月12日 检查发布。
2022年6月1日 开始。
1.说明
center布局将子项放置在容器的中心。
2.设置布局方法
在父容器中设置
layout: 'center',
//或者
layout: {
type: 'center'
}
3.适合场景
将子组件放置在容器中。
4.实例
4.1实例:中心布局
代码:
{
xtype: 'panel',
title: 'Center Layout Example',
layout: 'center',
renderTo: document.body,
width: 1000,
height: 1000,
items: [
{
draggable: true,
closable: true,
collapsible: true,
constrain: true,
minHeight: 100,
title: 'Centered Content Panel',
width: '75%', // 75% of the container width
html: 'Some content'
}
]
}
最新文章
- Docker学习总结
- Moto C118 基于 Osmocom-BB 和 OpenBTS 搭建小型GSM短信基站
- Codeforces Round #371 (Div. 2) - B
- 查看oracle数据库中的保留字
- 一步步教你为网站开发Android客户端---HttpWatch抓包,HttpClient模拟POST请求,Jsoup解析HTML代码,动态更新ListView
- OC三种方法实现定时器
- [Everyday Mathematics]20150211 Carlson inequality
- Linux2.6内核--内存管理(2)--区
- Windows 8 应用开发 - 挂起与恢复
- wuzhi 五指 数据库仿 thinkphp
- PowerShell 脚本中的密码
- Navicat Premium 12.1.11.0安装与激活
- python数据结构详解
- ubuntu16搭建harbor镜像库
- Nginx性能优化功能- Gzip压缩(大幅度提高页面加载速度)
- 详解使用DockerHub官方的mysql镜像生成容器
- ntp服务的细节全解析
- dgango 报错: Timeout when reading response headers from daemon process
- FPGA烧完程序之后,检测不到网口的
- for ...in 、for each ...in、 for...of(https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/for...of)