API Docs for: 0.0.1
Show:

zui.RAScrollPlugin Class

Extends Plugin.Base
Defined in: js/zui-rascroll.js:11
Module: gallery-zui-rascroll

RAScrollPlugin is a ScrollView plugin that adds right angle flick behaviors.

Constructor

zui.RAScrollPlugin

()

Methods

handleGestureMove

() protected

internal gesturemove event handler

handleGestureMoveEnd

() protected

internal gesturemoveend event handler

handleGestureMoveStart

() protected

internal gesturemovestart event handler

syncScroll

()

sync width or height for vertical scroll or horizontal scroll

syncWidth

()

make the scrollView become vertical scrolling

Attributes

cooperation

Boolean

A boolean decides the right angle behavior should started when other scrollView is also dragged.

Default: false

Fires event cooperationChange

Fires when the value for the configuration attribute cooperation is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.

Parameters:

  • e EventFacade
    An Event Facade object with the following attribute-specific properties added:
    • prevVal Any
      The value of the attribute, prior to it being set.
    • newVal Any
      The value the attribute is to be set to.
    • attrName String
      The name of the attribute being set.
    • subAttrName String
      If setting a property within the attribute's value, the name of the sub-attribute property being set.

horizontal

Boolean

make the scrollView as horizontal or not.

Default: true

Fires event horizontalChange

Fires when the value for the configuration attribute horizontal is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.

Parameters:

  • e EventFacade
    An Event Facade object with the following attribute-specific properties added:
    • prevVal Any
      The value of the attribute, prior to it being set.
    • newVal Any
      The value the attribute is to be set to.
    • attrName String
      The name of the attribute being set.
    • subAttrName String
      If setting a property within the attribute's value, the name of the sub-attribute property being set.