Description

  • Description of the tabview widget

Interface version

Version number Writer Date Description
1.0 Qin Zhitian June 29, 2021 initial release

IP address

http://192.168.1.1/wapi

API list

Name Description
set set attributes
get get attributes

1. set

Description of request parameters

Parameter Name Type Description
attr string attribute
attr.action string action:1-‘load index 0 ’;2-‘load index 1 ’;

Call example

{
    "wid": "s1",
    "cmd" : "set",
    "attr": {
        "action": "1"
    }
}
Note: set the tab index to 0;
{
    "wid": "s1",
    "cmd" : "set",
    "attr": {
            "action": "2"
    }
}
Note: set the tab index to 1;

Return example

{
    "code": 0
}

Description of return parameters

Parameter Name Type Description
result string result information
result.code int error code

Error Code

Error Code Description

##2、get

Description of request parameters

Parameter Name Type Description

Call example

{
    "wid": "s1",
    "cmd" : "get"
}

Return example

{
    "state": 0,
    "code": 0
}

Description of return parameters

Parameter Name Type Description
result string result information
result.code int error code
result.state int get the index of the currently active tab

Error Code

Error Code Description
文档更新时间: 2021-08-19 17:07   作者:plj