MessageBoxProps Interface

Properties for the MessageBox component

Extends

Properties

Name Type Description
buttonCluster DialogButtonDef[] List of DialogButtonDef objects specifying buttons and associated onClick events  
contentClassName undefined | string Custom CSS class name for the content  
contentStyle undefined | React.CSSProperties Custom CSS Style for the content  
height string | number initial height of dialog.  
minHeight undefined | number minimum height that the dialog may be resized to.  
minWidth undefined | number minimum width that the dialog may be resized to.  
modal undefined | false | true Whether to show background overlay.  
onClose undefined | () => void onClick event for X button for dialog  
onEscape undefined | () => void 'keyup' event for key  
opened boolean whether to show dialog or not  
severity MessageSeverity Severity of MessageBox  
title string | Element Title to show in title bar of dialog  
width string | number initial width of dialog.  

Inherited properties

Name Type Inherited from Description
className undefined | string ClassNameProps Custom CSS class name
style undefined | React.CSSProperties CommonProps Custom CSS style properties

Defined in

Last Updated: 20 September, 2019