-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: default warning hidden after any input (#1024)
Standard behaviour of warning message to be always be displayed was not intuitive and was requested to be changed into hidden after any input change. there is additional property `alwaysDisplay` in warning message object that is false by default, which enables warning to be always displayed ``` "create": { "message": "Some warning for account text create", "alwaysDisplay": true }, ```
- Loading branch information
1 parent
5ee23f5
commit d0d69ee
Showing
10 changed files
with
174 additions
and
33 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,34 @@ | ||
This feature allows us to pass broarder description on Input and Configuration page displayed under main description. | ||
|
||
### Warning Properties | ||
|
||
| Property | Type | Description | | ||
| -------- | ------ | ----------------------------------------- | | ||
| create | object | Warning object definition for create form | | ||
| edit | object | Warning object definition for edit form | | ||
| clone | object | Warning object definition for clone form | | ||
| config | object | Warning object definition for config form | | ||
|
||
### Warning Object Properties | ||
|
||
| Property | Type | Description | | ||
| ------------------------------------------------ | ------- | ------------------------------------------------------------------------------------------- | | ||
| message<span class="required-asterisk">\*</span> | string | Text used for that description, you can put \n to add a breakline | | ||
| alwaysDisplay | boolean | Force warning to be always displayed, even after input changes. Default value is **false**. | | ||
|
||
### Usage | ||
|
||
```json | ||
"warning": { | ||
"create": { | ||
"message": "Some warning for create form", | ||
"alwaysDisplay": true | ||
}, | ||
"edit": { | ||
"message": "Some warning for edit form " | ||
}, | ||
"clone": { | ||
"message": "Some warning for clone form" | ||
} | ||
}, | ||
``` |
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
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
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
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
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
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
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
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
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