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
chenhao
hel-developer-guide
Commits
43e82cdf
Commit
43e82cdf
authored
Aug 03, 2017
by
Jefferyne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 前端组件/hlsGrid.md
Auto commit by GitBook Editor
parent
d7e1bbb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
hlsGrid.md
前端组件/hlsGrid.md
+34
-34
No files found.
前端组件/
g
rid.md
→
前端组件/
hlsG
rid.md
View file @
43e82cdf
## Grid
##
hls
Grid
#### 表格
...
...
@@ -8,19 +8,19 @@
```
xml
<!--h:为命名空间,必须要加的,grid为组件名;id可写可不写-->
<h:
g
rid
id=
"grid"
/>
<h:
hlsG
rid
id=
"grid"
/>
```
```
xml
<!--grid-->
<h:
g
rid
dataSource=
"dataSource"
selectable=
"multiple, rowbox"
editable=
"true"
>
<h:
hlsG
rid
dataSource=
"dataSource"
selectable=
"multiple, rowbox"
editable=
"true"
>
<h:pageable
pageSizes=
"5, 10, 20, 50"
buttonCount=
"5"
refresh=
"true"
>
</h:pageable>
<h:columns>
<h:column
field=
"moduleCode"
title=
''
width=
"100"
/>
<h:column
field=
"functionCode"
title=
''
width=
"180"
/>
</h:columns>
</h:
g
rid>
</h:
hlsG
rid>
```
---
...
...
@@ -137,17 +137,17 @@ function rowTemplate(){
```
xml
<!--delimeter是Object类型-->
<h:
g
rid>
<h:
hlsG
rid>
<h:allowCopy>
<h:delimeter
/>
</h:allowCopy>
</h:
g
rid>
</h:
hlsG
rid>
<!--delimeter是String类型-->
<h:
g
rid>
<h:
hlsG
rid>
<h:allowCopy
delimeter=
","
>
</h:allowCopy>
</h:
g
rid>
</h:
hlsG
rid>
```
#### **columns**子标签
...
...
@@ -187,20 +187,20 @@ function rowTemplate(){
**attributes**
用法:
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:columns>
<h:column>
<h:attributes
"style"="text-align:center"
/>
</h:column>
</h:columns>
</h:
g
rid>
</h:
hlsG
rid>
```
**command**
用法:
```
xml
<!--对于数组来说,有两种形式,一种是直接用逗号分隔,放在标签上的,如 aggregates;另一种是创建子标签,再创建item子标签,再将数组内的内容整合到item子标签上,如command,先创建command子标签,再创建item子标签,再将数组中的每一个集合放在item标签上-->
<h:
g
rid>
<h:
hlsG
rid>
<h:columns
aggregates=
"count,min,max"
>
<h:column
template=
"fn:template"
/>
<h:column
field=
"functionId"
width=
"30px/>
...
...
@@ -211,7 +211,7 @@ function rowTemplate(){
</h:command>
</h:column>
</h:columns>
</h:
g
rid>
</h:
hlsG
rid>
```
**editor**
用法:
...
...
@@ -223,19 +223,19 @@ function editor(){
```
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:columns>
<h:column
editor=
"editor"
>
</h:column>
</h:coulmns>
</h:
g
rid>
</h:
hlsG
rid>
```
**filterable**
用法:
```
xml
<!--以filterable举例 遇到对象就向下添加子标签-->
<h:
g
rid>
<h:
hlsG
rid>
<h:columns>
<h:column>
<h:filterable>
...
...
@@ -243,19 +243,19 @@ function editor(){
</h:filterable>
</h:column>
</h:columns>
</h:
g
rid>
</h:
hlsG
rid>
```
**headerAtrributes**
用法:
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:columns>
<h:column>
<h:headerAttributes
"style"="color:red"
>
</h:column>
</h:columns>
</h:
g
rid>
</h:
hlsG
rid>
```
#### **ColumnMenu**子标签
...
...
@@ -270,11 +270,11 @@ function editor(){
用法:
```
xml
<h:
g
rid
id=
"grid"
>
<h:
hlsG
rid
id=
"grid"
>
<h:columnMenu
columns=
"true"
fileterable=
"false"
>
<h:messages
columns=
"choose columns"
/>
</h:columnMenu>
</h:
g
rid >
</h:
hlsG
rid >
```
#### **editable**子标签
...
...
@@ -292,11 +292,11 @@ function editor(){
用法:
```
xml
<h:
g
rid
id=
"grid"
>
<h:
hlsG
rid
id=
"grid"
>
<h:columnMenu
columns=
"true"
fileterable=
"false"
>
<h:messages
columns=
"choose columns"
/>
</h:columnMenu>
</h:
g
rid >
</h:
hlsG
rid >
```
#### **pageable**子标签
...
...
@@ -317,11 +317,11 @@ function editor(){
```
xml
<!--pageSizes 为array时-->
<h:
g
rid>
<h:
hlsG
rid>
<h:pageable
pageSizes=
"all,5,10,20,50"
buttonCount=
"5"
refresh=
"true"
>
<h:messages
display=
"show"
/>
</h:pageable>
</h:
g
rid>
</h:
hlsG
rid>
```
#### **messages**子标签
...
...
@@ -334,11 +334,11 @@ function editor(){
用法:
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:messages
noRecords=
"no data"
>
<h:commands
cancel=
"cancel"
/>
</h:messages >
</h:
g
rid>
</h:
hlsG
rid>
```
#### **noRecords**子标签
...
...
@@ -350,10 +350,10 @@ function editor(){
用法:
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:noRecords
template=
"no records"
>
</h:noRecords>
</h:
g
rid>
</h:
hlsG
rid>
```
#### **scrollable**子标签
...
...
@@ -365,9 +365,9 @@ function editor(){
用法:
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:scrollable
virtual=
"true"
/>
</h:
g
rid>
</h:
hlsG
rid>
```
#### **sortable**子标签
...
...
@@ -380,9 +380,9 @@ function editor(){
用法:
```
xml
<h:
g
rid>
<h:
hlsG
rid>
<h:sortable
allowUnsort=
"true"
mode=
"multiple"
/>
</h:
g
rid>
</h:
hlsG
rid>
```
#### **toolbar**子标签
...
...
@@ -401,7 +401,7 @@ function template(){
```
xml
<!--toolbar是数组 所以属性都是针对于数组内的集合来说的-->
<h:
g
rid>
<h:
hlsG
rid>
<h:toolbar>
<h:item
name=
"create"
>
<!--当template为String时,由于xml会对标签的封闭符号敏感,所以可以采取下面的方式-->
...
...
@@ -410,7 +410,7 @@ function template(){
</h:template>
</h:item>
</h:toolbar>
</h:
g
rid>
</h:
hlsG
rid>
```
> **提示**:
...
...
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