资源加载中... loading...

LogStatus-table

This JSON structure is used to configure the table content displayed in the strategy status bar.

Used to set the type of UI and controls to be parsed and displayed. For the status bar table, it is fixedly set to: table. type string Used to set the title of the status bar table. title string Used to set the column titles of the status bar table. The first element of the array is the title of the first column, and so on. cols array Used to set the row data of the status bar table. The first element of the 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 (the elements in the array structure correspond to the table column names one by one), that is, the first row of data in the table. rows array

function main() {
    var tbl = {
        type: "table", 
        title: "title", 
        cols: ["Column 1", "Column 2", "Column 3"], 
        rows: [
            ["Row 1 Column 1", "Row 1 Column 2", "Row 1 Column 3"],
            ["Row 2 Column 1", "Row 2 Column 2", "Row 2 Column 3"],
            ["Row 3 Column 1", "Row 3 Column 2", "Row 3 Column 3"],
        ]
    }
    LogStatus("`" + JSON.stringify(tbl) + "`")
}

{@fun/Log/LogStatus LogStatus}

HttpQuery-return LogStatus-btnTypeOne