ScrollView.Plugin.ScrollBar

ScrollView的滚动条插件
用来自定义滚动条

Class

Class Details

class scroll-view.ScrollBar
ScrollBar()
扩展自 Base ,包含其全部配置,属性,方法,事件.
插件 id :scroll-view/plugin/scrollbar

Configs Details

scroll-view.minLength

{Number} - 滚动条的最小长度

scroll-view.autoHideX

{Boolean} - 是否自动隐藏横向滚动条

scroll-view.autoHideY

{Boolean} - 是否自动隐藏纵向滚动条

使用示例

KISSY.use('scroll-view,scroll-view/plugin/scrollbar', function (S, ScrollView, ScrollbarPlugin) {
    var scrollView = new ScrollView({
        width: 320,
        height: 219,
        plugins: [new ScrollbarPlugin({
            autoHideX: true,
            autoHideY: false
        })],
        content: content
    }).render();
}