Description
- Description of the spinner widget
Interface version
Version number |
Writer |
Date |
Description |
1.0 |
Qin Zhitian |
June 29, 2021 |
initial release |
IP address
http:
API list
Name |
Description |
set |
set attributes |
get |
get attributes |
1. set
Description of request parameters
Parameter Name |
Type |
Description |
attr |
string |
attribute |
attr.func |
string |
arc_length-‘spinner length’;forward-‘forward’; backward-‘backward’; |
attr.length |
int |
parameter: |
Call example
{
"wid": "s1",
"cmd" : "set",
"attr": {
"func": "arc_length",
"length": 100
}
}
Note: set the length of spinner to 100;
{
"wid": "s1",
"cmd" : "set",
"attr": {
"func": "forward"
}
}
Note: set the animation direction of spinner to forward;
{
"wid": "s1",
"cmd" : "set",
"attr": {
"func": "backward"
}
}
Note: set the animation direction of spinner to backward;
Return example
{
"code": 0
}
Description of return parameters
Parameter Name |
Type |
Description |
result |
string |
result information |
result.code |
int |
error code |
Error Code
2. get
Description of request parameters
Parameter Name |
Type |
Description |
Call example
{
"wid": "s1",
"cmd" : "get"
}
Return example
{
"len": 100,
"code": 0
}
Description of return parameters
Parameter Name |
Type |
Description |
result |
string |
result information |
result.code |
int |
error code |
result.len |
int |
spinner length |
Error Code
文档更新时间: 2021-08-19 16:38 作者:plj