Search.../

scrolling

Sets or gets whether the HTML Component displays scrollbars.

Description

Setting the scrolling property sets what happens when the content in the HTML Component is larger than the size of the component.

The value can be set to:

  • "auto": Scrollbars are displayed only if needed. (This is the default.)
  • "yes": Scrollbars are always shown, even if they are not needed.
  • "no": Scrollbars are never shown, even if they are needed).

Getting the scrolling property returns which ScrollType the component is set to use.

Type:

stringRead & Write

Was this helpful?

Set whether the Html Component displays scrollbars

Copy Code
1$w("#myHtmlComponent").scrolling = "no";
Get whether the Html Component displays scrollbars

Copy Code
1let compScrolling = $w("#myHtmlComponent").scrolling; // "auto"