`
topcss
  • 浏览: 99596 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
文章分类
社区版块
存档分类
最新评论

Sencha Architect 2 中无法添加 buttons 属性的问题。

 
阅读更多

 

Sencha Architect 2 中无法添加 buttons 属性的问题。

 

解决步骤:

1、通过google 传送到

http://www.sencha.com/forum/showthread.php?178952-Ext.form.Panel-misses-buttons-config

 

文中提到API有解决方法,于是在传送到

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.panel.Panel-cfg-buttons

 

核心方法:添加 toolbar 的 ui: 'footer' 属性

buttons: [
  { text: 'Button 1' }
]

 相当于

dockedItems: [{
    xtype: 'toolbar',
    dock: 'bottom',
    ui: 'footer',
    defaults: {minWidth: minButtonWidth},
    items: [
        { xtype: 'component', flex: 1 },
        { xtype: 'button', text: 'Button 1' }
    ]
}]
 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics