Props

io.github.nafg.scalajs.facades.mui.base.Snackbar.Props
class Props extends PropTypes

Attributes

Graph
Supertypes
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def autoHideDuration: Prop[Double]

The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to hide the Snackbar. This behavior is disabled by default with the null value.

The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to hide the Snackbar. This behavior is disabled by default with the null value.

Attributes

def disableWindowBlurListener: Prop[Boolean]

If true, the autoHideDuration timer will expire even if the window is not focused.

If true, the autoHideDuration timer will expire even if the window is not focused.

Attributes

def exited: Prop[Boolean]

The prop used to handle exited transition and unmount the component.

The prop used to handle exited transition and unmount the component.

Attributes

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

Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway.

Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway.

Value parameters

{React.SyntheticEvent<any>

| Event} event The event source of the callback.

{string}

reason Can be: "timeout" (autoHideDuration expired), "clickaway", or "escapeKeyDown".

Attributes

def open: Prop[Boolean]

If true, the component is shown.

If true, the component is shown.

Attributes

def resumeHideDuration: Prop[Double]

The number of milliseconds to wait before dismissing after user interaction. If autoHideDuration prop isn't specified, it does nothing. If autoHideDuration prop is specified but resumeHideDuration isn't, we default to autoHideDuration / 2 ms.

The number of milliseconds to wait before dismissing after user interaction. If autoHideDuration prop isn't specified, it does nothing. If autoHideDuration prop is specified but resumeHideDuration isn't, we default to autoHideDuration / 2 ms.

Attributes

def slotProps: Prop[Object]

The props used for each slot inside the Snackbar.

The props used for each slot inside the Snackbar.

Attributes

def slots: Prop[Object]

The components used for each slot inside the Snackbar. Either a string to use a HTML element or a component.

The components used for each slot inside the Snackbar. Either a string to use a HTML element or a component.

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