Sencha Touch:禁用滚动面板,列表或DataView?
我看到面板可以选择将 scroll:
设置为水平或垂直,但是有什么办法可以执行以下操作: scroll: '假'
?我已经尝试过这样没有运气。
I see that panels have the option to set scroll:
to horizontal or vertical, but is there any way to do something like: scroll: 'false'
? I've tried such without luck.
我有一个嵌套在Panel中的DataView。我可以独立设置滚动方向,但是我希望DataView不要滚动。
I have a DataView nested in a Panel. I can set the scroll direction of each independently, but I want the DataView not to scroll at all.
[任何提示将获得答案点和数字高五。呃,我甚至会扔一个高额的SIX!]
[Any tips will earn answer points and a digital high five. Heck, I'll even throw in a bonus high SIX!]
我已经学会了不良文件记录的Sencha Touch),禁用滚动可以如下进行:
Okay, turns out by fudging around a bit (as I've learned to do with poorly documented Sencha Touch) that disabling the scroll can be done as follows:
scroll: false
注意设置滚动时不存在单引号或双引号:
到 false
。 水平
和 vertical
的值,但可以使用单引号或双引号。
Note the absence of single or double quotes when setting scroll:
to false
. The values horizontal
and vertical
, however can be done with single or double quotes.