API for Modifying Row Height  and Column Width

  • Last update:  2022-02-11
  • setRowHeight

    MethodsetRowHeight(row,height)

    Change cell row height

      Parameter

    row: number

    height: number

    row: row number

    height:  row height

    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , set the row height of the third row to 35

    report.setRowHeight(3,35);

    Example 2: Set the row height of row 3 to 35 in a general report

    _g().setRowHeight(3,35);
    示例3:Set the row height of report0 report block line 3 to 35 in the dashboard
    _g().getWidgetByName('report0').setRowHeight(3,35);

    Application

    example

    Click the button to set the row height of row 3 to 35:

    Click to download the template: 

    Modify row height of the cell.cpt

    1.gif

    MobileNot support mobile terminal

    setColWidth

    MethodsetColWidth(row,height)

    Change cell column width

     Parameter

    col: number

    height:  number

    col: column number

    height:  column width

    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , set the column width of the third column to 60

    report.setColWidth(3,60);

    Example 2: Setting column width of 3rd column to 60 in general report

    _g().setColWidth(3,60);

    Example 3: The column width of column 3 of the report0 report block is set to 60 in a dashboard

    _g().getWidgetByName('report0').setColWidth(3,60);

    Application

    example

    Click the button to set the column width of column 3 to 60:

    Click to download the template: 

    Modify column width of the cell.cpt

    2.gif

    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