我有以下煎茶触摸页面的要求:煎茶触摸VBOX
- 一滴一些选项下
- 由用户发布(长度可以变化大的时候)
- 文本区域的一个问题显示得到的答案
- 两个按钮提交和忽略
我使用VBOX布局。现在的问题是,我希望页面可以完全滚动而不是部分数据视图上的滚动等。
我该如何实现它。我对不同的屏幕有类似的要求。
下面是代码:
Ext.define('HCMDoctor.view.PFQuestion', {
extend : 'Ext.form.Panel',
xtype : 'PFQuestion',
id : 'pfView',
config : {
layout : {
type : 'vbox',
align : 'stretch'
},
flex : 1,
scrollable : true,
items : [{
xtype : 'container',
html : 'Public Forum Question'
}, {
xtype : 'selectfield',
store : 'CommunityWiseQuestions',
name : 'pfCommId',
id : 'pfCommId',
valueField : 'communityId',
displayField : 'displayFull'
}, {
store : 'PFQuestion',
xtype : 'dataview',
flex : 1,
id : 'pfQuestionHolder',
itemTpl : ['{discussionTitle}<br>{description}',
'<br>Posted in {postedInCommunityName}']
}, {
xtype : 'hiddenfield',
id : 'pfQuestionId',
name : 'pfQuestionId'
}, {
xtype : 'textareafield',
id : 'pfAnswer',
name : 'pfAnswer'
}, {
store : 'PFQuestion',
xtype : 'button',
text : 'Ignore',
id : 'ignorePFQuestion'
}, {
store : 'PFQuestion',
xtype : 'button',
text : 'Submit',
id : 'submitPFQuestion'
}
]
}
});
感谢
为什么'pfQuestionHolder'是'dataview'?它很可能是一个''Panel'' data''''tpl''属性来实现你想要的。 – ThinkFloyd
当你说数据你的意思是硬编码?我需要来自服务器的数据...如果你能建议我有一个存储或应用商店数据面板的方法,我完全没问题。 –