components.OnViewportMixin Class
This React component mixin adds onViewport callback prop. It's called when the component is scrolled to the visible viewport
Constructor
components.OnViewportMixin
(
-
props
Parameters:
-
propsObject-
onViewportFunctionCalled when the component appear in the viewport
-
Item Index
Methods
Methods
isInViewport
()
Boolean
Return true if the component is in the viewport ie. scrolled so the user can see it.
Returns:
Boolean:
isInViewport
()
Boolean
Return true if the component is in the viewport ie. scrolled so the user can see it.
Returns:
Boolean:
isInViewport
()
Boolean
Return true if the component is in the viewport ie. scrolled so the user can see it.
Returns:
Boolean:
