ErrorMessage
Extends:
react~Component → ErrorMessage
ErrorMessage is a component which uses Message component from Semantic-UI-React to display error message.
Access
Stage.Basic.ErrorMessage
Usage
Single error message
<ErrorMessage header="Fatal error" error="File cannot be opened" />
List of error messages
<ErrorMessage header="Errors in the form"
error=["Please provide deployment name", "Please provide agent_private_key_path"] />
Static Member Summary
Static Public Members | ||
public static |
Message visibility timeout |
|
public static |
propTypes: * propTypes |
Static Public Members
public static propTypes: * source
propTypes
Properties:
Name | Type | Attribute | Description |
autoHide | boolean |
|
if set, then message will be hidden after visibility timeout |
className | string |
|
additional CSS classes to Message component |
error | object |
|
string, array or object containing error text message/messages |
header | string |
|
header of error text message |
onDismiss | Function |
|
function called when either error message visibility timeout (see ErrorMessage.MESSAGE_VISIBLE_TIMEOUT) expires or user dismiss manually error message |