Script Call

Hierarchy

  • any
    • ItemScriptCall

Constructors

Properties

img: any
name: any

Accessors

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.

    • Returns {
          _id: any;
          category: any;
          hidden: any;
          img: any;
          name: any;
          type: any;
          value: any;
      }

      • _id: any
      • category: any
      • hidden: any
      • img: any
      • name: any
      • type: any
      • value: any