【问题标题】:mobiscroll - selecting option on clickmobiscroll - 单击时选择选项
【发布时间】:2012-12-12 19:18:41
【问题描述】:

我正在决定如何在网站上实现“选择”,并且正在强烈考虑使用 mobiscroll,只有一件小事让我很恼火,那就是“额外点击”(与老式的选择选项后所需的“设置”按钮的下拉菜单。

我的问题是,有没有办法在通过单击或触摸选择选项时关闭滚动条并设置值,但如果由于拖动滚动条或使用鼠标滚轮而“选择”了新选项,则没有办法?

这是我的代码:

<script type="text/javascript">

        $('#myScroller').mobiscroll({
            preset: 'select',
            theme: 'android-ics',
            mode: 'mixed',
            display: 'bubble',
            rows: 7,
            inputClass: 'subtleDropdown',
            onChange: function(val, inst) {
                //I would think this is where it's supposed to go, no luck thus far though!
                console.log(this);
            },
        });

</script>

干杯!

【问题讨论】:

    标签: jquery-plugins mobiscroll


    【解决方案1】:

    最后,我们决定不使用 mobiScroll(可用的信息太少),所以我要结束这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-16
      • 2011-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-13
      相关资源
      最近更新 更多