setCellRadius
Method | setCellRadius(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 value | void | |
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
Example 2: Set rounded corners for cells in a general report, with a rounded corner degree of 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: | |
Mobile | Not support mobile terminal |