Class: FilterScrollbar

FilterScrollbar()

The scrollbar of a filter option.

Extends

Members

children :Array

Array of child components
Type:
  • Array
Overrides:
Default Value:
  • []
Source:

parent :Component

The parent component
Type:
  • Component
Overrides:
Default Value:
  • null
Source:

Methods

(static) getScrollStateData(filterOptionId) → {number}

Get the scroll state of a filter option. This is a static field, so it won't be destroyed along with class instance.
Parameters:
Name Type Description
filterOptionId string
Source:
Returns:
- scrollTop value.
Type
number

(static) isEnabled(displayType, showMoreType) → {boolean}

Check if scrollbar is enabled.
Parameters:
Name Type Description
displayType FilterOptionEnum.DisplayType
showMoreType FilterOptionEnum.ShowMoreType
Source:
Returns:
Type
boolean

(static) setScrollStateData(filterOptionId, scrollTop)

Store the scroll state of a filter option. This is a static field, so it won't be destroyed along with class instance.
Parameters:
Name Type Description
filterOptionId string
scrollTop number scrollTop value
Source:

_callAllBindEvents()

Bind events on the component (include all child-components)
Overrides:
Source:

_callAllInit()

Initialize the component (include all child-components)
Overrides:
Source:

_callAllRender()

Render the component (include all child-components)
Overrides:
Source:

addComponent(childComponent)

Add the child component into a component
Parameters:
Name Type Description
childComponent Object The child component
Overrides:
Source:

afterBindEvents()

After bind evnets on the component
Overrides:
Source:

afterInit()

After initialize callback
Overrides:
Source:

afterRender()

After reder component callback
Overrides:
Source:

appendFilterItems()

Appends filter items on scroll to bottom of a filter option
Source:

beforeBindEvents()

Before bind events on component callback
Overrides:
Source:

beforeInit()

Before initialize callback
Overrides:
Source:

beforeRender()

Before reder component callback
Overrides:
Source:

bindEvents()

Bind events on the component
Overrides:
Source:

init()

Initialize component
Overrides:
Source:

isBindEvents()

Returns whether or not binding the events on a component
Overrides:
Source:

isLoopThroughChild()

Returns whether or not the childs of a component is refresh
Overrides:
Source:

isRender()

Returns whether or not the component is rendered
Overrides:
Source:

isScrollToBottom() → {boolean}

Check if scroll to bottom of a filter option
Source:
Returns:
Type
boolean

onScroll()

On scroll filter option
Source:

refresh()

Refresh component
Overrides:
Source:

removeComponent(childComponent)

Remove a child component of a component
Parameters:
Name Type Description
childComponent Object The child component
Overrides:
Source:

render()

Render compoment
Overrides:
Source: