Skip to content

Commit

Permalink
feat: combo文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaoo committed Oct 25, 2016
1 parent 9786fac commit 9d914d4
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions snippets/docs/combobox.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,44 @@ document.getElementById('domId')['u.Combo'].selectItem(index);
```

## \# setValue 根据真实值选中某行
* 类型: `Function`
* 说明: 查找下拉框数据中与传入的参数相同的真实值,并选中对应的某条数据
* 参数:
* `{String} value`: 要选中行的真实值
* 用法:

```
document.getElementById('domId')['u.Combo'].setValue(value);
```

## \# setName 根据显示值选中某行
* 类型: `Function`
* 说明: 查找下拉框数据中与传入的参数相同的显示值,并选中对应的某条数据
* 参数:
* `{String} name`: 要选中行的显示值
* 用法:

```
document.getElementById('domId')['u.Combo'].setName(name);
```


## \# emptyValue 清空所选内容
* 类型: `Function`
* 说明: 清空下拉列表所选内容
* 用法:

```
document.getElementById('domId')['u.Combo'].emptyValue();
```

相关内容:

[下拉框在kero中使用](http://design.yyuap.com/dist/pages/kero/combobox_ex.html)
Expand Down

0 comments on commit 9d914d4

Please sign in to comment.