Skip to content

Commit 1a7ab48

Browse files
authored
Merge pull request #316 from keboola/fix/ui-element-sync-action-docs
Update validation button docs
2 parents e545480 + fcd44e2 commit 1a7ab48

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

extend/component/ui-options/ui-examples/sync-action-examples.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,20 @@ The sync action code has to return the following stdout (JSON string):
100100
```json
101101
{
102102
"message": "###This is display text. \n\n It can contain **Markdown** notation. ",
103-
"type": "info", //possible values: success, info, warning, danger
104-
"status": "success" // this is required and will never be other value than "success"
103+
"type": "info",
104+
"status": "success"
105105
}
106106
```
107107

108+
**Available options:**
109+
- `type`: possible values: success, info, warning, error, table
110+
- `status`: possible values: success, error
111+
108112

109113
When used in Python, you can use the [ValidationResult](https://github.com/keboola/python-component#validationresult) class as a return value.
110114

115+
**NOTE** If status: error is used the message will always be displayed as an error message.
116+
111117
#### Example
112118

113119
```json

0 commit comments

Comments
 (0)