Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

ScrollViewer Class

Scott Miller edited this page Mar 17, 2016 · 4 revisions

A control that allows the user interact with scrollable content with their controller or remote control.

###Syntax var scrollViewer = TVJS.ScrollViewer;

###Constructors ScrollViewer
Creates a new ScrollViewer.

###Properties
element
Type HTMLElement
The element that contains the ScrollViewer.

scrollMode
Type TVJS.ScrollMode
Indicates the type of content in the ScrollViewer. That indicates how it will scroll.

###Methods dispose()
Releases the resources reserved by the ScrollViewer.

refresh
Refreshes the ScrollViewer.

###Remarks You can create a ScrollViewer object and use it to display additional elements inside the scrollable area. However, all elements must be displayed within a <div> tag. If you try to put elements directly in the ScrollViewer object, it will not behave as expected.