Skip to content

Commit

Permalink
docs: add info how to render input type column (splunk#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys authored Feb 10, 2023
1 parent d07f487 commit a47f6ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/modular_input_type_column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Modular Input Type column

If your add-on has multiple modular inputs there is a way to render an additional
column to show the input type of each input created.

Go to `header` field under `pages > inputs > table` and add another element there.

```text
"header": [
...
{
"label": "Input Type",
"field": "serviceName",
"mapping": {
"input_name_1": "Input name 1",
"input_name_2": "Input name 2"
}
}
...
]
```

The key under `mapping` field is the name of your modular input and the value is
how it will be rendered in the UI.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ nav:
- Components: "components.md"
- Tabs: "tabs.md"
- Additional packaging: "additional_packaging.md"
- Modular Input Type column: "modular_input_type_column.md"
- Custom UI Extensions:
- Custom Hook: "custom_ui_extensions/custom_hook.md"
- Custom Control: "custom_ui_extensions/custom_control.md"
Expand Down

0 comments on commit a47f6ec

Please sign in to comment.