Sencha touch 尝试自定义微调器字段Sencha extjs的步进器
我正在尝试将自定义微调器逻辑添加到我拥有的微调器字段中。我已经能够使用onSpinUp在“视图”中自定义微调器: 我希望在控制器中提及加速步骤,但我没有成功。我无法访问“微调器”函数中的调试器 这就是我到目前为止所拥有的,我不确定我错过了什么。有人能解释一下吗? 提前谢谢Sencha touch 尝试自定义微调器字段Sencha extjs的步进器,sencha-touch,Sencha Touch,我正在尝试将自定义微调器逻辑添加到我拥有的微调器字段中。我已经能够使用onSpinUp在“视图”中自定义微调器: 我希望在控制器中提及加速步骤,但我没有成功。我无法访问“微调器”函数中的调试器 这就是我到目前为止所拥有的,我不确定我错过了什么。有人能解释一下吗? 提前谢谢 `control:{ currentTime:{ //currenTime is the itemId spinup: 'spinner' // spinner is the function name
`control:{
currentTime:{ //currenTime is the itemId
spinup: 'spinner' // spinner is the function name
},
}`
`
spinner: function (){
debugger;
}
`
我看到您添加了单引号,我不确定您的代码是否与此完全相同,但您的控件对象应该如下所示:
//currenTime is the item id so it has to be wrapped
// with single quotes and it also needs a # prefix.
control:{
'container #currentTime': {
spinup: 'spinner' // spinner is the function name
}
检查小提琴:
- 注意:您需要添加
,只是容器#currentTime
不起作用。这是Sencha Touch的一个已知问题#currentTime