ModalContent
type ModalContent = {
actions?: string[];
body: string;
code?: string;
correlationId?: string;
helpLink?: string;
title: string;
};
content for warning / success / error / info modal types
Properties
actions?
optional actions?: string[];
list of actions that are avilable to user for providing feedback.
these actions are displayed as buttons in the modal
Example
['ok', 'cancel']
Default
['ok']
body
body: string;
message to be displayed in the body of the modal
code?
optional code?: string;
error code
correlationId?
optional correlationId?: string;
unique id that identifies the session / transaction
helpLink?
optional helpLink?: string;
link to the help documentation
title
title: string;
title of the modal