API Docs for:
Show:

components.OnViewportMixin Class

Defined in: bundle.js:1268
Module: filesize

This React component mixin adds onViewport callback prop. It's called when the component is scrolled to the visible viewport

Constructor

components.OnViewportMixin

(
  • props
)

Defined in bundle.js:1268

Parameters:

  • props Object
    • onViewport Function

      Called when the component appear in the viewport

Methods

isInViewport

() Boolean

Return true if the component is in the viewport ie. scrolled so the user can see it.

src: https://gist.github.com/

Returns:

Boolean:

isInViewport

() Boolean

Return true if the component is in the viewport ie. scrolled so the user can see it.

src: https://gist.github.com/

Returns:

Boolean:

isInViewport

() Boolean

Defined in bundle.js:1312

Return true if the component is in the viewport ie. scrolled so the user can see it.

src: https://gist.github.com/

Returns:

Boolean: