Hiding the Scrollbar Through JS

  • Last update:January 17, 2025
  • Overview

    Version

    Report Server Version
    Functional Change
    11.0

    /

    Application Scenario

    When the content in general reports, report blocks of dashboards, or table components of FVS templates is excessive, horizontal and vertical scrollbars will appear, significantly affecting the visual effects of reports during preview or in large-screen applications.

    How can you hide the scrollbar for a better display effect?

    Function Description

    Two methods for hiding the scrollbar are available in FineReport V11.0.

    iconNote:
    Neither of the above two methods is supported on mobile terminals.

    Implementation Method

    API Description

    You can use the API in the click event of a Button widget, Event After Page Load under Template, or the After Initialization event of a component as needed.

    The following figure shows the effect.

    Screen Recording 2025-01-17 at 18.26.02 (1).gif

    Plugin Installation

    After the plugin is installed, the scrollbar style is modified to a long rounded rectangle in gray. The modified scrollbar follows mouse wheel scrolling and automatically hides when idle, contributing to a cleaner interface.

    For details, see Custom Scrollbar Plugin. The following figure shows the effect.

    iconNote:
    The plugin is not supported in FVS templates and older versions of dashboards.

    Screen Recording 2025-01-17 at 18.23.30 (1).gif

    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

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

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

    不再提示

    7s后關閉

    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