Props

io.github.nafg.scalajs.facades.mui.Snackbar$.Props
class Props extends WithChildren[VdomElement]

Attributes

Graph
Supertypes
trait WithChildren[VdomElement]
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 ClickAwayListenerProps: Prop[Object]

Props applied to the ClickAwayListener element.

Props applied to the ClickAwayListener element.

Attributes

def ContentProps: Prop[Object]

Props applied to the SnackbarContent element.

Props applied to the SnackbarContent element.

Attributes

def TransitionComponent: Prop[ElementType]

The component used for the transition. Follow this guide to learn more about the requirements for this component.

The component used for the transition. Follow this guide to learn more about the requirements for this component.

Attributes

def TransitionProps: Prop[Object]

Props applied to the Transition element.

Props applied to the Transition element.

Attributes

def action: Prop[VdomNode]

The action to display. It renders after the message, at the end of the snackbar.

The action to display. It renders after the message, at the end of the snackbar.

Attributes

def anchorOrigin: Prop[Object]

The anchor of the Snackbar.

The anchor of the Snackbar.

Attributes

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 children: Prop[VdomElement]

Replace the SnackbarContent component.

Replace the SnackbarContent component.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component. See CSS API below for more details.

Override or extend the styles applied to the component. See CSS API below for more details.

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 message: Prop[VdomNode]

The message to display.

The message to display.

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.

Attributes

{object}

event The event source of the callback.

{string}

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

def open: Prop[Boolean]

If true, Snackbar is open.

If true, Snackbar is open.

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 style: Prop[Object]
def transitionDuration: Prop[Double | Object]

The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.

The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.

Attributes

Deprecated methods

def onEnter: Prop[Any]

Callback fired before the transition is entering.

Callback fired before the transition is entering.

Attributes

Deprecated
true
def onEntered: Prop[Any]

Callback fired when the transition has entered.

Callback fired when the transition has entered.

Attributes

Deprecated
true
def onEntering: Prop[Any]

Callback fired when the transition is entering.

Callback fired when the transition is entering.

Attributes

Deprecated
true
def onExit: Prop[Any]

Callback fired before the transition is exiting.

Callback fired before the transition is exiting.

Attributes

Deprecated
true
def onExited: Prop[Any]

Callback fired when the transition has exited.

Callback fired when the transition has exited.

Attributes

Deprecated
true
def onExiting: Prop[Any]

Callback fired when the transition is exiting.

Callback fired when the transition is exiting.

Attributes

Deprecated
true

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