API for Hiding Scroll Bar

setHScrollBarVisible

MethodsetHScrollBarVisible(visibility)Set the horizontal scroll bar to show/hide, it will not follow the mouse wheel to scroll after hiding.
  Parametervisibility: boolean

Whether the scroll bar is displayed, boolean, the default is true.

true: display

false: hide

Return valuevoid
    Example

Example 1: If the obtained report block object is defined as report, hide the horizontal scroll bar.

report.setHScrollBarVisible(false);

Example 2: Hide the horizontal scroll bar in general reports.

_g().setHScrollBarVisible(false);

Example 3: Hide the horizontal scroll bar of report0 report block in the dashboard.

_g().getWidgetByName('report0').setHScrollBarVisible(false);

Note: When the code is added to the "after initialization" event, it is recommended to add a delay function, otherwise an error may occur because the report block object is not completely created. Examples are as follows:

setTimeout(function(){     
_g().getWidgetByName('report0').setHScrollBarVisible(false);
}, 500);

Application

example

The horizontal scroll bar of report0 report block is hidden in the dashboard:

Click to download the template:

Hide horizontal scroll bar.frm

1.png

MobileNot support mobile terminal

setVScrollBarVisible

Method
setVScrollBarVisible(visibility)Set the vertical scroll bar to show/hide, it will not follow the mouse wheel to scroll after being hidden.
  Parametervisibility: boolean

Whether the scroll bar is displayed, boolean, the default is true.

true: display

false: hide

Return valuevoid
   Example

Example 1: If the obtained report block object is defined as report, hide the vertical scroll bar.

report.setVScrollBarVisible(false);

Example 2: Hide the vertical scroll bar in a general report.

_g().setVScrollBarVisible(false);

Example 3: Hide the vertical scroll bar of report0 report block in the dashboard.

_g().getWidgetByName('report0').setVScrollBarVisible(false);

Note: When the code is added to the "after initialization" event, it is recommended to add a delay function, otherwise an error may occur because the report block object is not completely created. Examples are as follows:

setTimeout(function()
_g().getWidgetByName('report0').setVScrollBarVisible(false);
}, 500);

Application

example

Hide the vertical scroll bar of report0 report block in the dashboard:

Click to download the template: 

Hide vertical scroll bar.frm

2.png

MobileNot support mobile terminal


Attachment List


Theme: Secondary Development
  • Helpful
  • Not helpful
  • Only read

滑鼠選中內容,快速回饋問題

滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

不再提示

10s後關閉

Get
Help
Online Support
Professional technical support is provided to quickly help you solve problems.
Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
Page Feedback
You can provide suggestions and feedback for the current web page.
Pre-Sales Consultation
Business Consultation
Business: international@fanruan.com
Support: support@fanruan.com
Page Feedback
*Problem Type
Cannot be empty
Problem Description
0/1000
Cannot be empty

Submitted successfully

Network busy