Hierarchy

  • any
    • ScriptEditor

Constructors

Properties

_promises: { submit: never[] }
scriptCall: any
DEFAULT_OPTIONS: {
    actions: { helpBrowser: Object };
    classes: string[];
    form: { closeOnSubmit: boolean; handler: Object };
    position: { height: number; width: number };
    sheetConfig: boolean;
    tag: string;
    window: { minimizable: boolean; resizable: boolean };
} = ...
PARTS: { footer: { template: string }; form: { template: string } } = ...

Accessors

  • get isEditable(): boolean
  • Is this script editable by the current User? This is governed by the editPermission threshold configured for the class.

    Returns boolean

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

    Returns Promise<
        {
            buttons: {
                category: string;
                disabled: boolean;
                icon: string;
                label: string;
            }[];
            categories: ScriptCallCategory[];
            editable: boolean;
            id: string;
            isGM: boolean;
            scriptCall: any;
            selectedCategory: ScriptCallCategory;
        },
    >

  • Protected

    Disable or reenable all form fields in this application.

    Parameters

    • disabled: boolean

      Should the fields be disabled?

    Returns void

  • Resolve all promises of the given category with the given result.

    Parameters

    • category: any
    • result: any

    Returns void