EXTJS4 之 toolbar
2015-06-19 10:12
477 查看
Shortcut | xtype | Class | Description | |
---|---|---|---|---|
'->' | tbfill | Ext.toolbar.Fill | begin using the right-justified button container | |
'-' | tbseparator | Ext.toolbar.Separator | add a vertical separator bar between toolbar items | |
' ' | tbspacer | Ext.toolbar.Spacer | add horizontal space between elements |
renderTo: document.body,
width : 500,
items: [
{
// xtype: 'button', // default for Toolbars
text: 'Button'
},
{
xtype: 'splitbutton',
text : 'Split Button'
},
// begin using the right-justified button container
'->', // same as { xtype: 'tbfill' }
{
xtype : 'textfield',
name : 'field1',
emptyText: 'enter search term'
},
// add a vertical separator bar between toolbar items
'-', // same as {xtype: 'tbseparator'} to create Ext.toolbar.Separator
'text 1', // same as {xtype: 'tbtext', text: 'text1'} to create Ext.toolbar.TextItem
{ xtype: 'tbspacer' },// same as ' ' to create Ext.toolbar.Spacer
'text 2',
{ xtype: 'tbspacer', width: 50 }, // add a 50px space
'text 3'
]
});
Ext.create('Ext.panel.Panel', {
title: 'Toolbar Fill Example',
width: 300,
height: 200,
tbar : [
'Item 1',
{ xtype: 'tbfill' },
'Item 2'
],
renderTo: Ext.getBody()
});
{ xtype: 'tbtext', text: 'Sample Text Item' }
Ext.create('Ext.panel.Panel', {
title: 'Panel with TextItem',
width: 300,
height: 200,
tbar: [
{ xtype: 'tbtext', text: 'Sample Text Item' }
],
renderTo: Ext.getBody()
});
相关文章推荐
- extjs grid取到数据而不显示的解决
- ExtJS下grid的一些属性说明
- Extjs在exlipse中设置自动提示的方法
- 常用Extjs工具:Extjs.util.Format使用方法
- extjs DataReader、JsonReader、XmlReader的构造方法
- 解决Extjs4中form表单提交后无法进入success函数问题
- 学习ExtJS(一) 之基础前提
- extjs 为某个事件设置拦截器
- ExtJs 学习笔记基础篇 Ext组件的使用第1/2页
- Extjs列表详细信息窗口新建后自动加载解决方法
- Extjs grid添加一个图片状态或者按钮的方法
- Extjs学习笔记之四 工具栏和菜单
- Extjs4 GridPanel的主要配置参数详细介绍
- extjs form textfield的隐藏方法
- ExtJS 2.0实用简明教程之应用ExtJS
- ExtJS Store的数据访问与更新问题
- 不用写JS也能使用EXTJS视频演示
- 使用OOP的方式扩展ExtJS UI组建 - 更新版
- 使用OOP的方式扩展ExtJS UI组建 - 更新版
- 【万里征程——Windows App开发】如何使用粘贴板