Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

Set Cell Style Interface

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: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback