Skip to content

MenuSheet ​

MenuSheet shows a menu in a sheet that comes up from the bottom of a narrow screen.

When to use ​

Use it on a phone for the same model that an AppMenu shows on a wider screen, so that the application describes its menu once. It is placed in the frame of the application, which must be a positioned element, as for a Sheet. The application opens it with open.

Props ​

PropDefaultDescription
itemsrequiredThe model, MenuModel[]
onselectCalled with the id of the chosen item
openfalseThe sheet shows (bindable)
oncloseCalled when the sheet closes
title"Menu"The title in the head of the sheet

Contract ​

It is a Sheet at half or full height, with a Toolbar head that holds the title, and the model as a MenuList with inline: a submenu takes the place of the list, under a row that goes back. The first item takes the focus when it opens, and the keys are a MenuList's. Choosing an item reports its id and closes the sheet; a drag below the lowest height and Escape close it too.

Example ​

MenuSheet

Released under the Apache-2.0 license.