forked from splunk/addonfactory-ucc-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add info how to render input type column (splunk#638)
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
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,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. |
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