Props

io.github.nafg.scalajs.facades.mui.Modal$.Props
class Props extends WithChildren[Any]

Attributes

Graph
Supertypes
trait WithChildren[Any]
trait PropTypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

Inherited from:
PropTypes
Graph
Supertypes
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

def BackdropComponent: Prop[ElementType]

A backdrop component. This prop enables custom backdrop rendering.

A backdrop component. This prop enables custom backdrop rendering.

Attributes

def BackdropProps: Prop[Object]

Props applied to the Backdrop element.

Props applied to the Backdrop element.

Attributes

def children: Prop[Any]

A single child content element.

A single child content element.

Attributes

def closeAfterTransition: Prop[Boolean]

When set to true the Modal waits until a nested Transition is completed before closing.

When set to true the Modal waits until a nested Transition is completed before closing.

Attributes

def container: Prop[Any | Object | Any => Any]

A HTML element, component instance, or function that returns either. The container will have the portal children appended to it.

A HTML element, component instance, or function that returns either. The container will have the portal children appended to it.

By default, it uses the body of the top-level document object, so it's simply document.body most of the time.

Attributes

def disableAutoFocus: Prop[Boolean]

If true, the modal will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any modal children that have the disableAutoFocus prop.

If true, the modal will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any modal children that have the disableAutoFocus prop.

Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers.

Attributes

def disableBackdropClick: Prop[Any]

If true, clicking the backdrop will not fire onClose.

If true, clicking the backdrop will not fire onClose.

Attributes

def disableEnforceFocus: Prop[Boolean]

If true, the modal will not prevent focus from leaving the modal while open.

If true, the modal will not prevent focus from leaving the modal while open.

Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers.

Attributes

def disableEscapeKeyDown: Prop[Boolean]

If true, hitting escape will not fire onClose.

If true, hitting escape will not fire onClose.

Attributes

def disablePortal: Prop[Boolean]

Disable the portal behavior. The children stay within it's parent DOM hierarchy.

Disable the portal behavior. The children stay within it's parent DOM hierarchy.

Attributes

def disableRestoreFocus: Prop[Boolean]

If true, the modal will not restore focus to previously focused element once modal is hidden.

If true, the modal will not restore focus to previously focused element once modal is hidden.

Attributes

def disableScrollLock: Prop[Boolean]

Disable the scroll lock behavior.

Disable the scroll lock behavior.

Attributes

def hideBackdrop: Prop[Boolean]

If true, the backdrop is not rendered.

If true, the backdrop is not rendered.

Attributes

def keepMounted: Prop[Boolean]

Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Modal.

Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Modal.

Attributes

def onBackdropClick: Prop[Any]

Callback fired when the backdrop is clicked.

Callback fired when the backdrop is clicked.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onClose: Prop[Any => Any]

Callback fired when the component requests to be closed. The reason parameter can optionally be used to control the response to onClose.

Callback fired when the component requests to be closed. The reason parameter can optionally be used to control the response to onClose.

Attributes

{object}

event The event source of the callback.

{string}

reason Can be: "escapeKeyDown", "backdropClick".

def onEscapeKeyDown: Prop[Any]

Callback fired when the escape key is pressed, disableEscapeKeyDown is false and the modal is in focus.

Callback fired when the escape key is pressed, disableEscapeKeyDown is false and the modal is in focus.

Attributes

def onRendered: Prop[Any]

Callback fired once the children has been mounted into the container. It signals that the open={true} prop took effect.

Callback fired once the children has been mounted into the container. It signals that the open={true} prop took effect.

This prop will be removed in v5, the ref can be used instead.

Attributes

def open: Prop[Boolean]

If true, the modal is open.

If true, the modal is open.

Attributes

def style: Prop[Object]

Inherited methods

def of[A : Writer](implicit evidence$1: Writer[A], name: Name): Prop[A]

Attributes

Inherited from:
PropTypes

Inherited fields

val key: Prop[Key]

Attributes

Inherited from:
PropTypes