Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed May 31, 2024
1 parent d8cc86b commit ee3ee03
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/dm-core-plugins/docs/JobControlPlugin/Documentation.md
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"]
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"folder": "job",
"main": "ControlConfig"
}
27 changes: 27 additions & 0 deletions packages/dm-core-plugins/docs/JobCreatePlugin/Documentation.md
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 packages/dm-core-plugins/docs/JobCreatePlugin/blueprints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"folder": "job",
"main": "CreateConfig"
}

0 comments on commit ee3ee03

Please sign in to comment.