ScrollViewer Class - microsoft/TVHelpers GitHub Wiki

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.

⚠️ **GitHub.com Fallback** ⚠️