Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class ScriptEditor

    Hierarchy

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
      • ScriptEditor
    Index

    Constructors

    Properties

    DEFAULT_OPTIONS: {
        actions: {
            help: Object;
            openMacro: (event: any, button: any) => Promise<void>;
        };
        classes: string[];
        form: { closeOnSubmit: boolean; handler: Object };
        id: string;
        position: { height: number; width: number };
        sheetConfig: boolean;
        tag: string;
        window: { icon: string; 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

    • Parameters

      • options: any

      Returns any

    • 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

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Protected

      Returns Promise<{ editable: boolean; id: string; isGM: boolean }>

    • Prepare context that is specific to only a single rendered part.

      It is recommended to augment or mutate the shared context so that downstream methods like _onRender have visibility into the data that was used for rendering. It is acceptable to return a different context object rather than mutating the shared context at the expense of this transparency.

      Parameters

      • partId: any

        The part being rendered

      • context: any

        Shared context provided by _prepareContext

      • options: any

        Options which configure application rendering behavior

      Returns Promise<any>

      Context data for a specific part

    • Protected

      Disable or reenable all form fields in this application.

      Parameters

      • disabled: boolean

        Should the fields be disabled?

      Returns void