React Menu - showFirstSubmenuMode

Specifies properties for showing and hiding the first level submenu.

Selector: ShowFirstSubmenuMode
Default Value: { name: 'onClick', delay: { show: 50, hide: 300 } }

If you assign a string that specifies the mode name to this property, the UI component will use the default delay value.

JavaScript
showFirstSubmenuMode: "onHover"

View Demo

delay

Specifies the delay in submenu showing and hiding.

Selector: Delay
Type:

Object

|

Number

Default Value: { show: 50, hide: 300 }

Passing a number to this property is the same as passing an object whose show and hide fields hold equal values. For example, the following ways to specify the delay are identical.

JavaScript
//number
delay: 300

//object
delay: {
    show: 300,
    hide: 300
}

name

Specifies the mode name.

Default Value: 'onClick'