An abstract class for a document selector application.

Abstract

Hierarchy

Constructors

Properties

selected: any

The currently selected document ID

DEFAULT_OPTIONS: {
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: (() => void);
        submitOnChange: boolean;
        submitOnClose: boolean;
    };
    includeNone: string;
    position: {
        width: number;
    };
    search: {
        compositioning: boolean;
        delay: number;
        effectiveSearch: string;
        event: null;
        value: string;
    };
    sheetConfig: boolean;
    tag: string;
    window: {
        minimizable: boolean;
        resizable: boolean;
        title: string;
    };
} = ...

Type declaration

  • classes: string[]
  • form: {
        closeOnSubmit: boolean;
        handler: (() => void);
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
    • closeOnSubmit: boolean
    • handler: (() => void)
        • (): void
        • Private

          Submit the form selection and resolve the stored promise, if provided

          Returns void

    • submitOnChange: boolean
    • submitOnClose: boolean
  • includeNone: string
  • position: {
        width: number;
    }
    • width: number
  • search: {
        compositioning: boolean;
        delay: number;
        effectiveSearch: string;
        event: null;
        value: string;
    }
    • compositioning: boolean
    • delay: number
    • effectiveSearch: string
    • event: null
    • value: string
  • sheetConfig: boolean
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
        title: string;
    }
    • minimizable: boolean
    • resizable: boolean
    • title: string
PARTS: {
    footer: {
        template: string;
    };
    form: {
        scrollable: string[];
        template: string;
    };
} = ...

Type declaration

  • footer: {
        template: string;
    }
    • template: string
  • form: {
        scrollable: string[];
        template: string;
    }
    • scrollable: string[]
    • template: string

Methods

  • Internal

    The event handler for changes to form input elements

    Parameters

    • formConfig: ApplicationFormConfiguration

      The configuration of the form being changed

    • event: Event

      The triggering event

    Returns void

  • 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;
        none: {
            document: {
                id: string;
                img: string;
                name: string;
            };
            include: any;
        };
        searchTerm: any;
        sections: DocumentSelectorSection[];
        selected: any;
        showSectionHeaders: boolean;
    }>

    Inherit Doc

    Async

Generated using TypeDoc