foo-webview-sdk
    Preparing search index...

    Interface UiShowCustomMenuParams

    Parameters for ui.showCustomMenu. Show a native popup menu at the system cursor position and wait for the choice. The chosen row is reported as selectedId and also announced to the calling window as ui:menuItemClicked with { id, label }; dismissing the menu reports selectedId: null.

    interface UiShowCustomMenuParams {
        h?: number;
        items: UiMenuItem[];
        suppressDefault?: boolean;
        w?: number;
        x?: number;
        y?: number;
    }
    Index
    h?: number

    See w.

    0
    
    items: UiMenuItem[]

    The rows.

    suppressDefault?: boolean

    Accepted for compatibility; has no effect.

    false
    
    w?: number

    With h, the size of a rectangle below the cursor the menu must not cover; the menu then opens below it.

    0
    
    x?: number

    Accepted for compatibility; the menu opens at the system cursor.

    0
    
    y?: number

    Accepted for compatibility; the menu opens at the system cursor.

    0