setHScrollBarVisible
Method | setHScrollBarVisible(visibility) | Set the horizontal scroll bar to show/hide, it will not follow the mouse wheel to scroll after hiding. |
---|---|---|
Parameter | visibility: boolean | Whether the scroll bar is displayed, boolean, the default is true. true: display false: hide |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report, hide the horizontal scroll bar.
Example 2: Hide the horizontal scroll bar in general reports.
Example 3: Hide the horizontal scroll bar of report0 report block in the dashboard.
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:
| |
Application example | The horizontal scroll bar of report0 report block is hidden in the dashboard: Click to download the template: | |
Mobile | Not 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. |
---|---|---|
Parameter | visibility: boolean | Whether the scroll bar is displayed, boolean, the default is true. true: display false: hide |
Return value | void | |
Example | Example 1: If the obtained report block object is defined as report, hide the vertical scroll bar.
Example 2: Hide the vertical scroll bar in a general report.
Example 3: Hide the vertical scroll bar of report0 report block in the dashboard.
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:
| |
Application example | Hide the vertical scroll bar of report0 report block in the dashboard: Click to download the template: | |
Mobile | Not support mobile terminal |