Props

io.github.nafg.scalajs.facades.mui.Menu$.Props
class Props extends WithChildren[VdomNode]

Attributes

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

Members list

Concise view

Type members

Classlikes

object transitionDuration extends Prop[String | Double | Object]

The length of the transition in ms, or 'auto'

The length of the transition in ms, or 'auto'

Attributes

Graph
Supertypes
class Prop[String | Double | Object]
class Object
trait Matchable
class Any
Self type
object variant extends Prop[String]

The variant to use. Use menu to prevent selected items from impacting the initial focus and the vertical alignment relative to the anchor element.

The variant to use. Use menu to prevent selected items from impacting the initial focus and the vertical alignment relative to the anchor element.

Attributes

Graph
Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
variant.type

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 PopoverClasses: Prop[Object]

classes prop applied to the Popover element.

classes prop applied to the Popover element.

Attributes

def TransitionProps: Prop[Object]

Props applied to the transition element. By default, the element is based on this Transition component.

Props applied to the transition element. By default, the element is based on this Transition component.

Attributes

def anchorEl: Prop[Element | Object => Element]

A HTML element, or a function that returns it. It's used to set the position of the menu.

A HTML element, or a function that returns it. It's used to set the position of the menu.

Attributes

def autoFocus: Prop[Boolean]

If true (Default) will focus the [role="menu"] if no focusable child is found. Disabled children are not focusable. If you set this prop to false focus will be placed on the parent modal container. This has severe accessibility implications and should only be considered if you manage focus otherwise.

If true (Default) will focus the [role="menu"] if no focusable child is found. Disabled children are not focusable. If you set this prop to false focus will be placed on the parent modal container. This has severe accessibility implications and should only be considered if you manage focus otherwise.

Attributes

def children: Prop[VdomNode]

Menu contents, normally MenuItems.

Menu contents, normally MenuItems.

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 disableAutoFocusItem: Prop[Boolean]

When opening the menu will not focus the active item but the [role="menu"] unless autoFocus is also set to false. Not using the default means not following WAI-ARIA authoring practices. Please be considerate about possible accessibility implications.

When opening the menu will not focus the active item but the [role="menu"] unless autoFocus is also set to false. Not using the default means not following WAI-ARIA authoring practices. Please be considerate about possible accessibility implications.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onClose: Prop[(ReactEvent, String) => Callback]

Callback fired when the component requests to be closed.

Callback fired when the component requests to be closed.

Attributes

{object}

event The event source of the callback.

{string}

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

def open: Prop[Boolean]

If true, the menu is visible.

If true, the menu is visible.

Attributes

def style: Prop[Object]

Deprecated methods

def onEnter: Prop[Any]

Callback fired before the Menu enters.

Callback fired before the Menu enters.

Attributes

Deprecated
true
def onEntered: Prop[Any]

Callback fired when the Menu has entered.

Callback fired when the Menu has entered.

Attributes

Deprecated
true
def onEntering: Prop[Any]

Callback fired when the Menu is entering.

Callback fired when the Menu is entering.

Attributes

Deprecated
true
def onExit: Prop[Any]

Callback fired before the Menu exits.

Callback fired before the Menu exits.

Attributes

Deprecated
true
def onExited: Prop[Any]

Callback fired when the Menu has exited.

Callback fired when the Menu has exited.

Attributes

Deprecated
true
def onExiting: Prop[Any]

Callback fired when the Menu is exiting.

Callback fired when the Menu 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