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 @@
*
update
*
destroy
| 属性名 | 类型 |
|
--- |
--- |
| cache | Boolean |
| contentType | String |
| data | Object
\|
Function |
| dataType | String |
| type | String |
| url | String
\|
Function |
| 属性名 | 类型 |
描述 |
|
:--- | :--- | :
--- |
| cache | Boolean |
设置为true将数据缓存住 |
| contentType | String |
发送到服务器的内容的http的头 |
| data | Object
\|
Function |
发送到远程服务的附加参数 |
| dataType | String |
服务器期望的返回类型 |
| type | String |
请求类型 |
| url | String
\|
Function |
请求地址 |
```
xml
<h:transport
parameterMap=
"parameterMap"
>
...
...
@@ -110,14 +110,14 @@
#### **schema属性**
| 属性名 | 类型 |
|
--- |
--- |
| data | String
\|
Function |
| errors | String
\|
Function |
| groups | String
\|
Function |
| parse | Function |
| total | String
\|
Function |
| type | String |
| 属性名 | 类型 |
描述 |
|
:--- | :--- | :
--- |
| data | String
\|
Function |
包含数据项的服务器的相应字段 |
| errors | String
\|
Function |
包含服务器端的错误的数据 |
| groups | String
\|
Function |
包含组的服务器端数据 |
| parse | Function |
预处理解析服务器响应 |
| total | String
\|
Function |
数据项的总数 |
| type | String |
相应类型支持XML和JSON |
```
xml
<h:dataSource
id=
"gridDataSource"
>
...
...
@@ -131,10 +131,10 @@
*
model
| 属性名 | 类型 |
|
--- |
--- |
| id | String |
| editable | Function |
| 属性名 | 类型 |
描述 |
|
:--- | :--- | :
--- |
| id | String |
唯一标识 |
| editable | Function |
设置是否可编辑 |
```
xml
<h:schema
data=
"rows"
total=
"total"
errors=
"schemaError"
>
...
...
@@ -150,17 +150,17 @@
*
field
| 属性名 | 类型 |
|
--- |
--- |
| name | String |
| defaultValue | Object |
| editable | Boolean |
| nullable | Boolean |
| parse | Function |
| type | String |
| from | String |
| checkedValue | String |
| uncheckedValue | String |
| 属性名 | 类型 |
描述 |
|
:--- | :--- | :
--- |
| name | String |
|
| defaultValue | Object |
|
| editable | Boolean |
|
| nullable | Boolean |
|
| parse | Function |
|
| type | String |
|
| from | String |
|
| checkedValue | String |
|
| uncheckedValue | String |
|
```
xml
<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