minuit

MenuComponent

A button with three lines that opens a menu of actions, checks and submenus.

Variants

Open

MenuComponent, open

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
MenuComponent more = add(new MenuComponent(at(new Box("more", 180, 6, 16, 16)), this)
        .tooltip(words.get("mymod.more"))
        .items(Item.title(words.get("mymod.view")),
                Item.check(words.get("mymod.grid"), grid, on -> grid = on),
                Item.separator(),
                Item.action(words.get("mymod.export"), this::export)));