LogStatus-table
This JSON structure is used to configure the table content displayed in the strategy status bar.
Attributes
| Name | Type | Description |
type | string | Used to set the type of UI control to be parsed and displayed. For status bar tables, it is fixed as: |
title | string | Used to set the title of the status bar table. |
cols | array | Used to set the column headers of the status bar table. The first element of the array is the title of the first column, and so on. |
rows | array | Used to set the row data of the status bar table. The first element of this rows array (two-dimensional array) is also an array structure. The length of this array structure should be consistent with the number of table columns (elements in the array correspond one-to-one with table column names), representing the first row of data in the table. |
See Also
Remarks
javascript
function main() {
var tbl = {
type: "table",
title: "标题",
cols: ["列1", "列2", "列3"],
rows: [
["行1列1", "行1列2", "行1列3"],
["行2列1", "行2列2", "行2列3"],
["行3列1", "行3列2", "行3列3"],
]
}
LogStatus("`" + JSON.stringify(tbl) + "`")
}