feat: add set and get control value api #278
This commit is contained in:
@@ -813,3 +813,13 @@ Usage:
|
||||
```javascript
|
||||
instance.command.executeLocationGroup(groupId: string)
|
||||
```
|
||||
|
||||
## executeSetControlValue
|
||||
|
||||
Feature: Set control value
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
instance.command.executeSetControlValue(payload: ISetControlOption)
|
||||
```
|
||||
|
||||
@@ -178,3 +178,16 @@ Usage:
|
||||
```javascript
|
||||
const groupIds = await instance.command.getGroupIds()
|
||||
```
|
||||
|
||||
## getControlValue
|
||||
|
||||
Feature: Get control value
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
const {
|
||||
value: string | null
|
||||
innerText: string | null
|
||||
} = await instance.command.getControlValue(payload: IGetControlValueOption)
|
||||
```
|
||||
|
||||
@@ -813,3 +813,13 @@ instance.command.executeDeleteGroup(groupId: string)
|
||||
```javascript
|
||||
instance.command.executeLocationGroup(groupId: string)
|
||||
```
|
||||
|
||||
## executeSetControlValue
|
||||
|
||||
功能:设置控件值
|
||||
|
||||
用法:
|
||||
|
||||
```javascript
|
||||
instance.command.executeSetControlValue(payload: ISetControlOption)
|
||||
```
|
||||
|
||||
@@ -178,3 +178,16 @@ const locale = await instance.command.getLocale()
|
||||
```javascript
|
||||
const groupIds = await instance.command.getGroupIds()
|
||||
```
|
||||
|
||||
## getControlValue
|
||||
|
||||
功能:获取控件值
|
||||
|
||||
用法:
|
||||
|
||||
```javascript
|
||||
const {
|
||||
value: string | null
|
||||
innerText: string | null
|
||||
} = await instance.command.getControlValue(payload: IGetControlValueOption)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user