-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/dm-core-plugins/docs/JobControlPlugin/Documentation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Lists display information where objects listed are structured the same. In dm applications it's also a great way for user to navigate nested items and objects. | ||
|
||
## Table of contents | ||
- [Passing data](#passing-data) | ||
- [Scope to list](#scope) | ||
- [Headers](#headers) | ||
|
||
## Passing data \{#passing-data} | ||
|
||
### Scope to list \{#scope} | ||
List expects an array of objects. Array is passed to the plugin by using the scope method in ViewConfig. | ||
```json {4} | ||
"viewConfig": { | ||
"type": "CORE:ViewConfig", | ||
"recipe": {…}, | ||
"scope": "array_attribute_name" | ||
} | ||
``` | ||
|
||
### Headers \{#headers} | ||
Select data fields by passing attribute name in `headers` config. | ||
```json {3} | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/table/ListPluginConfig", | ||
"headers": ["first_name", "last_name", "age"] | ||
} | ||
``` |
4 changes: 4 additions & 0 deletions
4
packages/dm-core-plugins/docs/JobControlPlugin/blueprints.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"folder": "job", | ||
"main": "ControlConfig" | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/dm-core-plugins/docs/JobCreatePlugin/Documentation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Lists display information where objects listed are structured the same. In dm applications it's also a great way for user to navigate nested items and objects. | ||
|
||
## Table of contents | ||
- [Passing data](#passing-data) | ||
- [Scope to list](#scope) | ||
- [Headers](#headers) | ||
|
||
## Passing data \{#passing-data} | ||
|
||
### Scope to list \{#scope} | ||
List expects an array of objects. Array is passed to the plugin by using the scope method in ViewConfig. | ||
```json {4} | ||
"viewConfig": { | ||
"type": "CORE:ViewConfig", | ||
"recipe": {…}, | ||
"scope": "array_attribute_name" | ||
} | ||
``` | ||
|
||
### Headers \{#headers} | ||
Select data fields by passing attribute name in `headers` config. | ||
```json {3} | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/table/ListPluginConfig", | ||
"headers": ["first_name", "last_name", "age"] | ||
} | ||
``` |
4 changes: 4 additions & 0 deletions
4
packages/dm-core-plugins/docs/JobCreatePlugin/blueprints.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"folder": "job", | ||
"main": "CreateConfig" | ||
} |