Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

Hide Scroll Bar Interface

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: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback