Change Editor

Since

PF1 v10

Hierarchy

  • any
    • ChangeEditor

Constructors

Properties

change: ItemChange
DEFAULT_OPTIONS: {
    actions: {
        copyUuid: any;
    };
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: ((event, form, formData) => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    };
    position: {
        width: number;
    };
    sheetConfig: boolean;
    tag: string;
    window: {
        minimizable: boolean;
        resizable: boolean;
    };
} = ...

Type declaration

  • actions: {
        copyUuid: any;
    }
    • copyUuid: any
  • classes: string[]
  • form: {
        closeOnSubmit: boolean;
        handler: ((event, form, formData) => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
    • closeOnSubmit: boolean
    • handler: ((event, form, formData) => Promise<void>)
        • (event, form, formData): Promise<void>
        • Private

          Update the object with the new change data from the form.

          Parameters

          • event: SubmitEvent

            The originating form submission event

          • form: HTMLFormElement

            The form element that was submitted

          • formData: FormDataExtended

            Processed data for the submitted form

          Returns Promise<void>

    • submitOnChange: boolean
    • submitOnClose: boolean
  • position: {
        width: number;
    }
    • width: number
  • sheetConfig: boolean
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
    }
    • minimizable: boolean
    • resizable: boolean
PARTS: {
    form: {
        template: string;
    };
} = ...

Type declaration

  • form: {
        template: 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<{
        actor: ActorPF;
        change: ItemChange;
        config: config;
        isAdd: boolean;
        isDeferred: boolean;
        isSet: boolean;
        isValid: boolean;
        isValidOp: boolean;
        isValidType: boolean;
        item: ItemPF;
        label: any;
    }>

    Inherit Doc

    Async

  • Private

    Update the object with the new change data from the form.

    Parameters

    • event: SubmitEvent

      The originating form submission event

    • form: HTMLFormElement

      The form element that was submitted

    • formData: FormDataExtended

      Processed data for the submitted form

    Returns Promise<void>

Generated using TypeDoc