Sencha Touch:禁用滚动面板,列表或DataView? [英] Sencha Touch: Disable scrolling for a Panel, List, or DataView?

查看:174
本文介绍了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.

这篇关于Sencha Touch:禁用滚动面板,列表或DataView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆