An abstract class for a document selector application.

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_OPTIONS: {
    classes: string[];
    empty: string;
    form: {
        closeOnSubmit: boolean;
        handler: Object;
        submitOnChange: boolean;
        submitOnClose: boolean;
    };
    position: { width: number };
    sheetConfig: boolean;
    tag: string;
    window: { minimizable: boolean; resizable: boolean; title: string };
} = ...
PARTS: {
    footer: { template: string };
    form: { scrollable: string[]; template: string };
} = ...

Accessors

Methods

  • Protected

    Attach event listeners to the rendered application form.

    Parameters

    • context: ApplicationRenderContext

      Prepared context data

    • options: RenderOptions

      Provided render options

    Returns void

  • Internal

    Returns Promise<
        {
            buttons: { label: string; type: string }[];
            document: any;
            empty: {
                document: { id: string; img: string; name: string };
                include: any;
            };
            searchTerm: any;
            sections: DocumentSelectorSection[];
            selected: string;
            showSectionHeaders: boolean;
        },
    >

  • Render selector and wait for it to resolve.

    Parameters

    • options: object

      Options

    Returns Promise<null | string | false | Document<any, null, Metadata<any>>>

    • Document or string for selected item, null if cancelled, or false or empty string if none were selected.