Theia API Documentation v1.65.0
    Preparing search index...

    Options to configure the behaviour of a file open dialog.

    interface OpenDialogOptionsMain {
        canSelectFiles?: boolean;
        canSelectFolders?: boolean;
        canSelectMany?: boolean;
        defaultUri?: string;
        filters?: { [name: string]: string[] };
        openLabel?: string;
        title?: string;
    }
    Index

    Properties

    canSelectFiles?: boolean

    Allow to select files, defaults to true.

    canSelectFolders?: boolean

    Allow to select folders, defaults to false.

    canSelectMany?: boolean

    Allow to select many files or folders.

    defaultUri?: string

    The resource the dialog shows when opened.

    filters?: { [name: string]: string[] }

    A set of file filters that are used by the dialog. Each entry is a human readable label, like "TypeScript", and an array of extensions, e.g.

    {
    'Images': ['png', 'jpg']
    'TypeScript': ['ts', 'tsx']
    }
    openLabel?: string

    A human-readable string for the open button.

    title?: string

    Dialog title. This parameter might be ignored, as not all operating systems display a title on open dialogs.