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
9233c533
Commit
9233c533
authored
Aug 02, 2017
by
Jefferyne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 前端组件/DataSource.md
Auto commit by GitBook Editor
parent
5ae8ed3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
DataSource.md
前端组件/DataSource.md
+31
-31
No files found.
前端组件/DataSource.md
View file @
9233c533
...
@@ -86,14 +86,14 @@
...
@@ -86,14 +86,14 @@
*
update
*
update
*
destroy
*
destroy
| 属性名 | 类型 |
| 属性名 | 类型 |
描述 |
|
--- |
--- |
|
:--- | :--- | :
--- |
| cache | Boolean |
| cache | Boolean |
设置为true将数据缓存住 |
| contentType | String |
| contentType | String |
发送到服务器的内容的http的头 |
| data | Object
\|
Function |
| data | Object
\|
Function |
发送到远程服务的附加参数 |
| dataType | String |
| dataType | String |
服务器期望的返回类型 |
| type | String |
| type | String |
请求类型 |
| url | String
\|
Function |
| url | String
\|
Function |
请求地址 |
```
xml
```
xml
<h:transport
parameterMap=
"parameterMap"
>
<h:transport
parameterMap=
"parameterMap"
>
...
@@ -110,14 +110,14 @@
...
@@ -110,14 +110,14 @@
#### **schema属性**
#### **schema属性**
| 属性名 | 类型 |
| 属性名 | 类型 |
描述 |
|
--- |
--- |
|
:--- | :--- | :
--- |
| data | String
\|
Function |
| data | String
\|
Function |
包含数据项的服务器的相应字段 |
| errors | String
\|
Function |
| errors | String
\|
Function |
包含服务器端的错误的数据 |
| groups | String
\|
Function |
| groups | String
\|
Function |
包含组的服务器端数据 |
| parse | Function |
| parse | Function |
预处理解析服务器响应 |
| total | String
\|
Function |
| total | String
\|
Function |
数据项的总数 |
| type | String |
| type | String |
相应类型支持XML和JSON |
```
xml
```
xml
<h:dataSource
id=
"gridDataSource"
>
<h:dataSource
id=
"gridDataSource"
>
...
@@ -131,10 +131,10 @@
...
@@ -131,10 +131,10 @@
*
model
*
model
| 属性名 | 类型 |
| 属性名 | 类型 |
描述 |
|
--- |
--- |
|
:--- | :--- | :
--- |
| id | String |
| id | String |
唯一标识 |
| editable | Function |
| editable | Function |
设置是否可编辑 |
```
xml
```
xml
<h:schema
data=
"rows"
total=
"total"
errors=
"schemaError"
>
<h:schema
data=
"rows"
total=
"total"
errors=
"schemaError"
>
...
@@ -150,17 +150,17 @@
...
@@ -150,17 +150,17 @@
*
field
*
field
| 属性名 | 类型 |
| 属性名 | 类型 |
描述 |
|
--- |
--- |
|
:--- | :--- | :
--- |
| name | String |
| name | String |
|
| defaultValue | Object |
| defaultValue | Object |
|
| editable | Boolean |
| editable | Boolean |
|
| nullable | Boolean |
| nullable | Boolean |
|
| parse | Function |
| parse | Function |
|
| type | String |
| type | String |
|
| from | String |
| from | String |
|
| checkedValue | String |
| checkedValue | String |
|
| uncheckedValue | String |
| uncheckedValue | String |
|
```
xml
```
xml
<h:schema
data=
"rows"
total=
"total"
errors=
"schemaError"
>
<h:schema
data=
"rows"
total=
"total"
errors=
"schemaError"
>
...
...
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