| horizontalAlignments | Array of Array | No | Horizontal alignment. Valid values: left (align left), center (center align), right (align right), general (default alignment). Pass the values as a two-dimensional array based on the range address. See the following examples: The two-dimensional array contains one element per row in the range, and each element contains one value per column in the range. Example 1: When the range address is A1:B3 (a three-row, two-column table), the value format is: { "horizontalAlignments": [ ["left", "general"], ["center", "general"], ["right", "general"] ] } Example 2: When the range address is A1:C3 (a three-row, three-column table), the value format is: { "horizontalAlignments": [ ["left", "left", "general"], ["center", "center", "general"], ["right", "right", "general"] ] } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| numberFormat | String | No | The number format. | | | | | --- | --- | --- | | Name | Number format | Example | | General | ”General” | | | Text | ”@“ | | | Number | ”#,##0” | 1,234 | | Number (with decimals) | ”#,##0.00” | 1,234.56 | | Percentage | ”0%“ | 12% | | Percentage (with decimals) | “0.00%“ | 12.34% | | Scientific notation | ”0.00E+00” | 1.01E+03 | | RMB | ”¥#,##0” | ¥1,234 | | RMB (with decimals) | ¥#,##0.00” | ¥1,234.56 | | USD | ”$#,##0” | $1,234 | | USD (with decimals) | ”$#,##0.00” | $1,234.56 | | Date | ”yyyy/m/d” | 2022/1/1 | | Date (Chinese) | “yyyy年m月d日” | 2022年1月1日 | | Date (Chinese, year and month) | “yyyy年m月” | 2022年1月 | | Time | ”hh:mm:ss” | 00:00:00 | | Date and time | ”yyyy/m/d hh:mm:ss” | 2022/1/1 00:00:00 | |
| wordWrap | String | No | The text wrap mode. Valid values: - overflow: overflow - clip: clip - autoWrap: wrap text | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| values | Array of Array | No | The cell values. Pass the values as a two-dimensional array based on the range address. See the following examples: The two-dimensional array contains one element per row in the range, and each element contains one value per column in the range. Example 1: When the range address is A1:B3 (a three-row, two-column table), the value format is: { "values": [ ["1", "2"], ["3", "4"], ["5", "6"] ] } Example 2: When the range address is A1:C3 (a three-row, three-column table), the value format is: { "values": [ ["1","2","3"], ["4","5","6"], ["7","8","9"] ] } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| complexValues | Array of Array | No | The cell values. Pass the values as a two-dimensional array based on the range address. Use this field to fill the corresponding cells with rich text content. See the appendix that follows for details. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| backgroundColors | Array of Array | No | The background colors, specified as hexadecimal values. Pass the values as a two-dimensional array based on the range address. See the following examples: The two-dimensional array contains one element per row in the range, and each element contains one value per column in the range. Example 1: When the range address is A1:B3 (a three-row, two-column table), the value format is: { "backgroundColors": [ ["#ff0000", "#00ff00"], ["#f0f0f0", "#0000ff"], ["#f0f0f0", "#0000ff"] ] } Example 2: When the range address is A1:C3 (a three-row, three-column table), the value format is: { "backgroundColors": [ ["#ff0000","#ff0000","#ff0000"], ["#ff0000","#ff0000","#ff0000"], ["#ff0000","#ff0000","#ff0000"] ] } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| fontColors | Array of Array | No | The font colors, specified as hexadecimal values. Pass the values as a two-dimensional array based on the range address. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| fontSizes | Array of Array | No | The font sizes. Pass the values as a two-dimensional array based on the range address. See the following examples: The two-dimensional array contains one element per row in the range, and each element contains one value per column in the range. Example 1: When the range address is A1:B3 (a three-row, two-column table), the value format is: { "fontSizes": [ [14, 14], [15, 15], [10, 10] ] } Example 2: When the range address is A1:C3 (a three-row, three-column table), the value format is: { "fontSizes": [ [14, 14, 14], [15, 15, 15], [10, 10, 10] ] } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| fontWeights | Array of Array | No | The font weights. Valid values: - bold: bold - normal: normal | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| hyperlinks | Array of Array | No | The hyperlinks. Pass the values as a two-dimensional array based on the range address. See the following examples: The two-dimensional array contains one element per row in the range, and each element contains one value per column in the range. Example 1: When the range address is A1:B3 (a three-row, two-column table), the value format is: { "hyperlinks": [ [ { "type": "path", "link": "https://www.dingtalk.io", "text": "test" }, { "type": "sheet", "link": "Sheet2", "text": "test" } ], [ { "type": "range", "link": "Sheet2!A4", "text": "test" }, { "type": "path", "link": "https://www.dingtalk.io", "text": "test" } ], [ { "type": "range", "link": "Sheet2!A4", "text": "2" }, { "type": "sheet", "link": "Sheet2", "text": "test" } ] ] } Example 2: When the range address is A1:C3 (a three-row, three-column table), the value format is: { "hyperlinks": [ [ { "type": "path", "link": "https://www.dingtalk.io", "text": "test" }, { "type": "sheet", "link": "Sheet2", "text": "test" },{ "type": "path", "link": "https://www.dingtalk.io", "text": "test" } ], [ { "type": "range", "link": "Sheet2!A4", "text": "test" }, { "type": "path", "link": "https://www.dingtalk.io", "text": "test" },{ "type": "path", "link": "https://www.dingtalk.io", "text": "test" } ], [ { "type": "range", "link": "Sheet2!A4", "text": "2" }, { "type": "sheet", "link": "Sheet2", "text": "test" },{ "type": "path", "link": "https://www.dingtalk.io", "text": "test" } ] ] } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| verticalAlignments | Array of Array | No | Vertical alignment. Valid values: top (align top), middle (center vertically), bottom (align bottom). Pass the values as a two-dimensional array based on the range address. See the following examples: The two-dimensional array contains one element per row in the range, and each element contains one value per column in the range. Example 1: When the range address is A1:B3 (a three-row, two-column table), the value format is: { "verticalAlignments": [ ["top", "top"], ["middle", "middle"], ["bottom", "bottom"] ] } Example 2: When the range address is A1:C3 (a three-row, three-column table), the value format is: { "verticalAlignments": [ ["top", "top", "top"], ["middle", "middle", "middle"], ["bottom", "bottom", "bottom"] ] } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |