Selection menu runtime controls exposed through AsukaDesigner.layout.

interface AsukaSelectionMenuApi {
    back: (() => void);
    close: (() => void);
    goTo: ((id: string) => void);
    open: (() => void);
    reset: (() => void);
    setItems: ((items: string[]) => void);
    setType: ((type:
        | "inline"
        | "floating"
        | "popover"
        | "panel-left"
        | "panel-right"
        | "panel-bottom"
        | "panel-top"
        | "modal"
        | "drawer"
        | "overlay") => void);
}

Properties

back: (() => void)

Navigate one step back inside the contextual stack.

close: (() => void)

Close the contextual selection menu.

goTo: ((id: string) => void)

Navigate directly to a module inside the contextual stack.

open: (() => void)

Open the contextual selection menu.

reset: (() => void)

Reset the selection menu stack to its initial state.

setItems: ((items: string[]) => void)

Replace the modules shown in the contextual selection menu.

setType: ((type:
    | "inline"
    | "floating"
    | "popover"
    | "panel-left"
    | "panel-right"
    | "panel-bottom"
    | "panel-top"
    | "modal"
    | "drawer"
    | "overlay") => void)

Change the container used by the selection menu, usually popover.