【发布时间】:2015-12-17 18:50:54
【问题描述】:
我正在使用 Sencha 触摸应用程序,并且我有一个带有此功能的分段按钮,从后端隐藏或显示不同的项目,它是一个动态分段按钮,为此我需要调整,例如我只有一个如果用户拥有所有选项,segmentedButton 大小的选项将是..当然在屏幕中居中..
怎么做?
目前我的代码是:
{
xtype : 'segmentedbutton',
itemId: 'surveyEditorSegmentedButton',
cls : 'surveyEditorSegmentedButton',
items : [
{
itemId : 'presenceData',
iconMask: true
//pressed : true
},
{
itemId : 'auxiliaryFields',
iconMask: true
},
{
itemId : 'profiles',
iconMask: true
},
{
itemId : 'photos',
iconMask: true
}
]
}
但它并不完全相同,我的分段按钮有一个宽度,在这种情况下是整个屏幕..
【问题讨论】:
标签: javascript extjs sencha-touch