Skip to content

JS API

Options

mode

  • Type: 'click' | 'hover'
  • Default: click

Configures by which event the menu is opened and closed.

Methods

open()

Open the menu first MenuList child and close any other MenuList already opened.

close()

Close the menu first MenuList child.

toggle()

Open or close the menu first MenuList child.