API for Setting Cell Style

  • setCellRadius

    MethodsetCellRadius(radius)

    Set rounded corners for all cells in the report. The cells must have a background color, otherwise the effect cannot be seen.

    Note: The new version of the dashboard is not supported for the time being.

     Parameter

    radius: number

    The degree of rounded corners, number, the maximum value is half of the short side of the cell pixel when previewing, and the maximum value is displayed after the maximum value is exceeded.

    Reutrn valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , set rounded corners for the cell, and the rounded corner degree is 15

    report.setCellRadius(15);

    Example 2: Set rounded corners for cells in a general report, with a rounded corner degree of 15

    _g().setCellRadius(15);

    Example 3: In the dashboard, set rounded corners to the cells of the report0 report block, and the rounded corner degree is 15

    _g().getWidgetByName('report0').setCellRadius(15);

    Application

    example

    Set rounded corners to cells with a degree of 15:

    Click to download the template: 

    Cell Rounded Corner.cpt

    1.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