Script Call

Hierarchy

  • ItemScriptCall

Constructors

Properties

data: any
parent: any

Accessors

  • get defaultData(): {
        _id: string;
        category: string;
        hidden: boolean;
        img: string;
        name: string;
        type: string;
        value: string;
    }
  • Returns {
        _id: string;
        category: string;
        hidden: boolean;
        img: string;
        name: string;
        type: string;
        value: string;
    }

    • _id: string
    • category: string
    • hidden: boolean
    • img: string
    • name: string
    • type: string
    • value: string

Methods

  • Parameters

    • __namedParameters: {
          editable: undefined | boolean;
      } = {}
      • editable: undefined | boolean

    Returns Promise<any>

  • Executes the script.

    Parameters

    • shared: object

      An object passed between script calls, and which is passed back as a result of ItemPF.executeScriptCalls.

    • extraParams: {} = {}

      A dictionary containing extra parameters to pass on to the call.

      Returns any

      • Script return value if any
    • Creates a script call.

      Parameters

      • data: object[]

        Data to initialize the script call(s) with.

      • context: {
            parent: undefined | ItemPF;
        }

        An object containing context information.

        • parent: undefined | ItemPF

          The parent entity to create the script call within.

      Returns Promise<any[]>

      The resulting script calls, or an empty array if nothing was created.

    Generated using TypeDoc