foo-webview-sdk
    Preparing search index...

    Interface WindowCreatePopupParams

    Parameters for window.createPopup. Open a popup window with its own WebView and bridge; at most 8 popups can be open. Works from a DUI/CUI panel too. Fails with OPERATION_FAILED when 8 popups are already open or the window cannot be created.

    interface WindowCreatePopupParams {
        alwaysOnTop?: boolean;
        backdropPolicy?: Record<string, JsonValue>;
        beforeClose?: boolean;
        behavior?: Record<string, JsonValue>;
        clickThrough?: boolean;
        frame?: boolean;
        height?: number;
        maxHeight?: number;
        maxWidth?: number;
        minHeight?: number;
        minWidth?: number;
        profile?: string;
        resizable?: boolean;
        showInTaskbar?: boolean;
        title?: string;
        transparent?: boolean;
        url?: string;
        width?: number;
        x?: number;
        y?: number;
    }
    Index
    alwaysOnTop?: boolean

    Keep the popup above every other window. To keep it above the main window only, use the standard preset or behavior.owner: "main" instead.

    false
    
    backdropPolicy?: Record<string, JsonValue>

    Backdrop policy overrides on top of the preset, keyed like resolvedBackdropPolicy of window.getBackdropPolicy.

    beforeClose?: boolean

    Send window:beforeClose and wait for window.confirmClose or window.cancelClose before closing.

    false
    
    behavior?: Record<string, JsonValue>

    Behavior overrides on top of the preset, keyed like resolvedBehavior of window.getPopupBehavior.

    clickThrough?: boolean

    Let mouse input pass through the popup.

    false
    
    frame?: boolean

    Whether to draw the native frame and caption; false creates a borderless popup.

    true
    
    height?: number

    Height in physical pixels; fractions are dropped.

    300
    
    maxHeight?: number

    Maximum height for resizing, in physical pixels; 0 means no bound.

    0
    
    maxWidth?: number

    Maximum width for resizing, in physical pixels; 0 means no bound.

    0
    
    minHeight?: number

    Minimum height for resizing, in physical pixels.

    150
    
    minWidth?: number

    Minimum width for resizing, in physical pixels.

    200
    
    profile?: string

    Behavior preset: standard, miniPlayer or desktopLyrics, case-insensitive, with - or _ allowed (mini-player); an unknown value is standard. Omitted, no preset.

    resizable?: boolean

    Whether the user can resize the popup.

    true
    
    showInTaskbar?: boolean

    Whether the popup shows on the taskbar and in Alt+Tab; omitted, the preset decides.

    title?: string

    Window title.

    ""
    
    transparent?: boolean

    Whether the background is transparent.

    false
    
    url?: string

    Page to load. An http://, https://, file:/// or data: URL is loaded as it is; a path containing .html is loaded from the theme (or the development server); anything else, including empty, loads the theme's index.html with this value as the route query parameter. Every URL except data: gets a windowId query parameter. A page loaded from an http:// or https:// URL can use the bridge only when the calling page already trusts that origin; any other absolute URL loads a page that cannot. Such a page still shows, but its calls fail with ORIGIN_DENIED and no event reaches it.

    ""
    
    width?: number

    Width in physical pixels; fractions are dropped.

    400
    
    x?: number

    Left edge in screen coordinates; omitted, Windows places the window. Fractions are dropped.

    y?: number

    Top edge in screen coordinates; omitted, Windows places the window. Fractions are dropped.