Global

Members

_setMoveStyle

Set CSS style values to move elements

Initialize setting up checking if browser support transform css property. If browser doesn't support transform, then use left/top properties instead.

Methods

_addClonePanels(){Boolean}

To fulfill minimum panel count cloning original node when circular or previewPadding option are set

Returns:
Type Description
Boolean
true : added clone node, false : not added
true : added clone node, false : not added

_adjustContainerCss(phase, coords)

Adjust container's css value to handle Android 2.x link highlighting bug

  • phase
    Type: String

    start - set left/top value to 0 end - set translate value to 0

    start - set left/top value to 0 end - set translate value to 0

  • coords
    Type: Array

    coordinate value

    coordinate value

_animationEndHandler()

'animationEnd' event handler

_animationStartHandler()

'animationStart' event handler

_applyPanelsCss()

Callback function for applying CSS values to each panels

Need to be initialized before use, to set up for Android 2.x browsers or others.

_applyPanelsPos()

Set each panel's position in DOM

_arrangePanelPosition(direction, indexToMove)

Move nodes

  • direction
    Type: Boolean
  • indexToMove
    Type: Number

_arrangePanels(sort, indexToMove)

Arrange panels' position

  • sort
    Type: Boolean

    Need to sort panel's position

    Need to sort panel's position

  • indexToMove
    Type: Number

    Number to move from current position (negative: left, positive: right)

    Number to move from current position (negative: left, positive: right)

_bindEvents(bind)

Bind events

  • bind
    Type: Boolean

_build()

Build and set panel nodes to make flicking structure

_changeHandler()

'change' event handler

_checkPadding()

Update panel's previewPadding size according options.previewPadding

_getBasePositionIndex()

Get the base position index of the panel

_getCoordsValue(coords){Object}

Get coordinate value with unit

  • coords
    Type: Array

    x,y numeric value

    x,y numeric value

Returns:
Type Description
Object
x,y coordinate value with unit
x,y coordinate value with unit

_getDataByDirection(value){Array}

Get data according options.horizontal value

  • value
    Type: Array

    primary data to handle

    primary data to handle

Returns:
Type Description
Array

_getElement(direction, element, physical){jQuery|Number}

Get next/prev panel element/index.

  • direction
    Type: Boolean
  • element
    Type: Boolean

    true:to get element, false:to get index

    true:to get element, false:to get index

  • physical
    Type: Number

    true : physical, false : logical

    true : physical, false : logical

Returns:
Type Description
jQuery | Number

_getNumByDirection()

Get positive or negative according direction

_getNumValue(val, defVal){Number}

Check and parse value to number

  • val
    Type: Number | String
  • defVal
    Type: Number
Returns:
Type Description
Number

_getUnitValue(val){String}

Return unit formatted value

  • val
    Type: Number | String
Returns:
Type Description
String
val Value formatted with unit
val Value formatted with unit

_holdHandler()

'hold' event handler

_isMovable()

Check if panel passed through threshold pixel

_movePanel(next, duration)

Move panel to the given direction

  • next
    Type: Boolean
  • duration
    Type: Number

_movePanelByPhase(method, coords, duration)

Move panel applying start/end phase value

  • method
    Type: String

    movableCoord method name

    movableCoord method name

  • coords
    Type: Object

    coordinate array value

    coordinate array value

  • duration
    Type: Number

    duration value

    duration value

_movePanelPosition(count, append)

Move panel's position within array

  • count
    Type: Number

    element counts to move

    element counts to move

  • append
    Type: Boolean

    where the list to be appended(moved) (true: to the end, false: to the beginning)

    where the list to be appended(moved) (true: to the end, false: to the beginning)

_releaseHandler()

'release' event handler

_revertPanelNo()

Revert panel number

_setAdaptiveHeight(direction)

Set container's height value according to children's height

  • direction
    Type: Number

_setConfig($children, _prefix)

Set config values

  • $children
    Type: jQuery

    wrappers' children elements

    wrappers' children elements

  • _prefix
    Type: String

    event prefix

    event prefix

_setDefaultPanel(index)

Set default panel to show

  • index
    Type: Number

_setHint()

Set hint for browser to decide efficient way of doing transform changes(or animation) https://dev.opera.com/articles/css-will-change-property/

_setMovableCoord(method, coord, isDirVal, duration){eg.MovableCoord}

Set MovableCoord coord value

  • method
    Type: String
  • coord
    Type: Array
  • isDirVal
    Type: Boolean
  • duration
    Type: Number
Returns:
Type Description
eg.MovableCoord
MovableCoord instance
MovableCoord instance

_setOptions(options)

Set options values

  • options
    Type: Object

_setPadding(padding, build)

Set preview padding value

  • padding
    Type: Array
  • build
    Type: Boolean

_setPanelNo(obj)

Set the panel number

  • obj
    Type: Object

    number object

    number object

_setPhaseValue(phase, pos)

Set value when panel changes

  • phase
    Type: String

    [start|end]

    [start|end]

  • pos
    Type: Object

_setPointerEvents(e)

Set pointerEvents css property on container element due to the iOS click bug

  • e
    Type: Event

_setTranslate(coords)

Set translate property value

  • coords
    Type: Array

    coordinate x,y value

    coordinate x,y value

_setValueToMove(next)

Set value to force move panels when duration is 0

  • next
    Type: Boolean

_triggerBeforeRestore(e)

Trigger beforeRestore event

  • e
    Type: Object

    event object

    event object

_triggerEvent(name, param){Boolean}

Trigger custom events

  • name
    Type: String

    event name

    event name

  • param
    Type: Object

    additional event value

    additional event value

Returns:
Type Description
Boolean

_triggerRestore()

Trigger restore event

construct(element, options)

Constructor

  • element
    Type: HTMLElement | String | jQuery

    base element

    base element

  • options
    Type: Object
comments powered by Disqus