【发布时间】:2021-08-26 19:11:59
【问题描述】:
我有一个文本区域,它显示一些文本,右侧有一个垂直滚动条,文本区域下方有一个复选框,如下面的代码所示:
xtype: 'container',
items: [{
{
xtype: 'textarea',
scrollY: true,
screenX: true,
height: 130,
minHeight: 80,
top: 10,
width: 650,
id: 'testDisplay',
name: 'testDisplay',
itemId: 'testDisplay',
bind: {
value: some text
},
listeners: {
afterrender: function(cmp) {
textAreaComp = me.down('#testDisplay');
textAreaComp.setValue(someInfo);
}
},
},
{
xtype: 'checkboxfield',
name: 'testDisplayChkbox',
id: 'testDisplayChkbox',
itemId: 'testDisplayChkbox',
checked: false,
boxLabel: someLabel,
}
}]
我希望首先禁用复选框,然后在滚动到复选框上方的文本区域末尾后启用它。如何实现?
【问题讨论】:
标签: javascript checkbox extjs textarea sencha-touch-2