foo-webview-sdk
    Preparing search index...

    Interface MenuShowParams

    Parameters for menu.show. Show a self-drawn menu. The choice arrives as menu:select and a dismissal as menu:dismiss; changing a rating, slider or segmented row reports menu:valueChanged and leaves the menu open. Too many rows, too deep nesting, too many segments or too much style text fail with INVALID_PARAMS and details.

    interface MenuShowParams {
        backdrop?: string;
        backdropDarkMode?: boolean;
        closeAnimationMs?: number;
        css?: string;
        cssReplace?: boolean;
        items?: JsonValue[];
        windowModel?: string;
        x?: number;
        y?: number;
    }
    Index
    backdrop?: string

    Window backdrop: acrylic (the default), mica, mica-alt or none. Other values keep the default.

    backdropDarkMode?: boolean

    Dark tint for the backdrop; the default is true.

    closeAnimationMs?: number

    Length of the closing animation in milliseconds, clamped to 0–1000; the default 0 closes at once.

    css?: string

    Style sheet applied to the menu on top of the built-in styles, at most 256 KiB.

    cssReplace?: boolean

    Replace the built-in styles with css instead of adding to them.

    items?: JsonValue[]

    Menu rows; the SDK's MenuPopupItem describes their fields. A row icon over 32 KiB is dropped.

    windowModel?: string

    contentSized draws each panel in a window sized to its content; any other value uses one full-screen overlay window.

    x?: number

    Screen x of the anchor in physical pixels; absent or negative uses the mouse pointer.

    y?: number

    Screen y of the anchor in physical pixels; absent or negative uses the mouse pointer.