_LazyLoadBase

(esrith/amos/core/_LazyLoadBase)

Base class for lazy loading functions

Type Description
xPercentage Number

The percentage of scroll remaining in x-axis (horizontal).

xPixels Number

The pixel of scroll remaining in x-axis (horizontal).

yPercentage Number

The percentage of scroll remaining in y-axis (vertical).

yPixels Number

The pixel of scroll remaining in y-axis (vertical).

Return type Description
disableReachXChecking() None

Disable the lazy loading checkings. Data will not be loaded further than the specified position eventhough xPercentage or xPixel properties are reached.

disableReachYChecking() None

Disable the lazy loading checkings. Data will not be loaded further than the specified position eventhough yPercentage or yPixel properties are reached.

enableReachXChecking() None

Enable lazy loading checkings in x-axis (horizontal).

enableReachYChecking() None

Enable lazy loading checkings in y-axis (vertical).

Description
reached-x

Fired when xPercentage or xPixel properties are reached.

reached-y

Fired when yPercentage or yPixel properties are reached.

Properties Detail
<Number>
xPercentage

The percentage of scroll remaining in x-axis (horizontal).

Default value: null

<Number>
xPixels

The pixel of scroll remaining in x-axis (horizontal).

Default value: null

<Number>
yPercentage

The percentage of scroll remaining in y-axis (vertical).

Default value: null

<Number>
yPixels

The pixel of scroll remaining in y-axis (vertical).

Default value: null

Methods Detail
disableReachXChecking
()

Disable the lazy loading checkings. Data will not be loaded further than the specified position eventhough xPercentage or xPixel properties are reached.

disableReachYChecking
()

Disable the lazy loading checkings. Data will not be loaded further than the specified position eventhough yPercentage or yPixel properties are reached.

enableReachXChecking
()

Enable lazy loading checkings in x-axis (horizontal).

enableReachYChecking
()

Enable lazy loading checkings in y-axis (vertical).

Events Detail
reached-x

Fired when xPercentage or xPixel properties are reached.

reached-y

Fired when yPercentage or yPixel properties are reached.