Manual Reference Source
import ErrorMessage from 'cloudify-stage/basic/ErrorMessage.js'
public class | source

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

<ErrorMessage header="Fatal error" error="File cannot be opened" />

List of error messages

ErrorMessage

<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

Static Public Members

public static MESSAGE_VISIBLE_TIMEOUT: * source

Message visibility timeout

public static propTypes: * source

propTypes

Properties:

NameTypeAttributeDescription
autoHide boolean
  • optional
  • default: false

if set, then message will be hidden after visibility timeout

className string
  • optional
  • default: ''

additional CSS classes to Message component

error object
  • optional
  • default: null

string, array or object containing error text message/messages

header string
  • optional
  • default: 'Error Occured'

header of error text message

onDismiss Function
  • optional

function called when either error message visibility timeout (see ErrorMessage.MESSAGE_VISIBLE_TIMEOUT) expires or user dismiss manually error message