API for Hiding the Scrollbar

  • Last update:April 14, 2025
  • Version

    VersionFunctional Change
    11.0

    Difference from 10.0:

    Supported by 10.0, 10.0.19, and later versions.

    11.0.6Allowed you to use setHScrollBarVisible and setVScrollBarVisible APIs in FVS plugins of V1.8.0 and later versions.

    setHScrollBarVisible

    APIsetHScrollBarVisible(visibility) 

    To display/hide the horizontal scrollbar.

    iconNote: 
    The hidden report cannot be swiped horizontally with the cursor, and you can use the trackpad to swipe the report.
    Parameter visibilityboolean 

    The parameter (a boolean) that represents whether to display the scrollbar, with the default value true.

    true: to display

    false: to hide

    Returned 

    Value

    void
    ExampleExample 1: You can hide the horizontal scrollbar of the obtained report block object that is defined as report.

    report.setHScrollBarVisible(false);

    Example 2: In a general report, you can hide the horizontal scrollbar.

    _g().setHScrollBarVisible(false);

    iconNote: 
    The hidden scrollbar in a general report cannot be scrolled.

    Example 3: In a FRM report, you can hide the horizontal scrollbar of the report block named report0.

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

    Example 4: In an FVS visualization dashboard, you can hide the horizontal scrollbar of the component Table1.

    duchamp.getWidgetByName("Table1").setHScrollBarVisible(false);

    iconNote: 
    When adding the code in an After Initialization event, you are advised to add a delay function to postpone the execution, or an error may occur due to incomplete creation of the report block object. The example is as follows:

    setTimeout(function(){

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

    }, 500);

    Application 

    Example

    In an FRM report, you can hide the horizontal scrollbar of the report block named report0.

    For details, you can download the template Hiding the Horizontal Scrollbar.frm

    032.png

      Mobile 

    Terminal 

    This API is supported on mobile terminals.

    setVScrollBarVisible

    APIsetVScrollBarVisible(visibility) 

    To display/hide the vertical scrollbar.

     

    iconNote:

    In an FRM report of the new version, you can scroll the report by scrolling the mouse wheel when the scrollbar is hidden.

    In an FRM report of the old version, you cannot scroll the report by scrolling the mouse wheel when the scrollbar is hidden.

    Parametervisibilityboolean 

    The parameter (a boolean) that represents whether to display the scrollbar, with the default value true.

    true: to display

    false: to hide

    Returned 

    Value

    void
    Example Example 1: You can hide the vertical scrollbar of the obtained report block object that is defined as report.

    report.setVScrollBarVisible(false);

    Example 2: In a general report, you can hide the vertical scrollbar.

    _g().setHScrollBarVisible(false);

    iconNote: 
    The hidden scrollbar in a general report cannot be scrolled.

    Example 3: In an FRM report, you can hide the vertical scrollbar of the report block named report0.

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

    Example 4: In an FVS visualization dashboard, you can hide the vertical scrollbar of the component Table1.

    duchamp.getWidgetByName("Table1").setVScrollBarVisible(false);

    iconNote: 
    When adding the code in an After Initialization event, you are advised to add a delay function to postpone the execution, or an error may occur due to incomplete creation of the report block object. The example is as follows:

    setTimeout(function(){

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

    }, 500);

     Application Example In an FRM report, you can hide the vertical scrollbar of the report block named report0.

    For details, you can download the template Hiding the Vertical Scrollbar.frm

    033.png

    Mobile 

    Terminal 

    This API is supported on mobile terminals.


    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