Commit e645d588 authored by custom's avatar custom

Updates 前端组件/hlsCombobox.md

Auto commit by GitBook Editor
parent e383fe58
# hlsCombobox标签 # hlsCombobox标签
hlsCombobox 下拉列表组件 hlsCombobox 下拉列表组件
```xml ```xml
<h: hlsCombobox placeholder="combobox" <h: hlsCombobox placeholder="combobox"
...@@ -77,7 +77,7 @@ function onComboboxChange(e){ ...@@ -77,7 +77,7 @@ function onComboboxChange(e){
``` ```
```xml ```xml
<h:combobox id="combobox" dataSource="dataSource" clearButton="true" placeholder="test" enable="false" template="fn:itemTemplate" change="onComboboxChange"/> <h: hlsCombobox id="combobox" dataSource="dataSource" clearButton="true" placeholder="test" enable="false" template="fn:itemTemplate" change="onComboboxChange"/>
``` ```
> **提示:** 某些属性类型为**String \| Function** 时,表明它可以定义为字符串或者函数。因此当需要定义为Function时需要增加前缀**fn:**来区分\(例如函数template="fn:itemTemplate" \) > **提示:** 某些属性类型为**String \| Function** 时,表明它可以定义为字符串或者函数。因此当需要定义为Function时需要增加前缀**fn:**来区分\(例如函数template="fn:itemTemplate" \)
...@@ -101,12 +101,12 @@ function onComboboxChange(e){ ...@@ -101,12 +101,12 @@ function onComboboxChange(e){
| duration | Number | | duration | Number |
```xml ```xml
<h:combobox id="combobox"> <h: hlsCombobox id=" hlsCombobox ">
<h:animation> <h:animation>
<h:close effects="zoom:out" duration="300"/> <h:close effects="zoom:out" duration="300"/>
<h:open effects="zoom:in" duration="300"/> <h:open effects="zoom:in" duration="300"/>
</h:animation> </h:animation>
</h:combobox> </h: hlsCombobox >
``` ```
### **popup** ### **popup**
...@@ -120,9 +120,9 @@ function onComboboxChange(e){ ...@@ -120,9 +120,9 @@ function onComboboxChange(e){
| position | String | | position | String |
```xml ```xml
<h:combobox id="combobox"> <h: hlsCombobox id="combobox">
<h:popup appendTo="container" origin="top left" position="top left"/> <h:popup appendTo="container" origin="top left" position="top left"/>
</h:combobox> </h: hlsCombobox >
``` ```
### **virtual** ### **virtual**
...@@ -154,8 +154,8 @@ function valueMapper(){ ...@@ -154,8 +154,8 @@ function valueMapper(){
``` ```
```xml ```xml
<h:combobox id="combobox"> <h: hlsCombobox id="combobox">
<h:virtual itemHeight ="20" mapValueTo="index" valueMapper="valueMapper"/> <h:virtual itemHeight ="20" mapValueTo="index" valueMapper="valueMapper"/>
</h:combobox> </h: hlsCombobox >
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment