Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
e645d588
Commit
e645d588
authored
Jul 25, 2017
by
custom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 前端组件/hlsCombobox.md
Auto commit by GitBook Editor
parent
e383fe58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
hlsCombobox.md
前端组件/hlsCombobox.md
+8
-8
No files found.
前端组件/hlsCombobox.md
View file @
e645d588
# hlsCombobox标签
hlsCombobox 下拉列表组件
hlsCombobox 下拉列表组件
```
xml
<h:
hlsCombobox
placeholder=
"combobox"
...
...
@@ -77,7 +77,7 @@ function onComboboxChange(e){
```
```
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" \)
...
...
@@ -101,12 +101,12 @@ function onComboboxChange(e){
| duration | Number |
```
xml
<h:
combobox
id=
"combobox
"
>
<h:
hlsCombobox
id=
" hlsCombobox
"
>
<h:animation>
<h:close
effects=
"zoom:out"
duration=
"300"
/>
<h:open
effects=
"zoom:in"
duration=
"300"
/>
</h:animation>
</h:
combobox
>
<
/h:
hlsCombobox
>
```
### **popup**
...
...
@@ -120,9 +120,9 @@ function onComboboxChange(e){
| position | String |
```
xml
<h:
combobox
id=
"combobox"
>
<h:
hlsCombobox
id=
"combobox"
>
<h:popup
appendTo=
"container"
origin=
"top left"
position=
"top left"
/>
</h:
combobox
>
<
/h:
hlsCombobox
>
```
### **virtual**
...
...
@@ -154,8 +154,8 @@ function valueMapper(){
```
```
xml
<h:
combobox
id=
"combobox"
>
<h:
hlsCombobox
id=
"combobox"
>
<h:virtual
itemHeight =
"20"
mapValueTo=
"index"
valueMapper=
"valueMapper"
/>
</h:
combobox
>
<
/h:
hlsCombobox
>
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment