@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias RowOpExperimental

    RowOp:
        | { op: "set"; at: number; row: Json }
        | { op: "insert"; at: number; rows: Json[] }
        | { op: "remove"; at: number; count: number }
        | { op: "move"; from: number; count: number; to: number }

    One row operation of a list property's patch, by index, applied to the result of the ones before (feature ui.patch).

    Type Declaration

    • { op: "set"; at: number; row: Json }
      • op: "set"

        Replace one row.

      • at: number

        The row's index.

      • row: Json

        The new row.

    • { op: "insert"; at: number; rows: Json[] }
      • op: "insert"

        Insert rows.

      • at: number

        The index the first new row gets (the list's length: at the end).

      • rows: Json[]

        The new rows, in order.

    • { op: "remove"; at: number; count: number }
      • op: "remove"

        Remove a run of rows.

      • at: number

        The index of the first row removed.

      • count: number

        How many rows.

    • { op: "move"; from: number; count: number; to: number }
      • op: "move"

        Move a run of rows.

      • from: number

        The index of the first row moved.

      • count: number

        How many rows.

      • to: number

        Where they go, an index of the list without them.

    Part of the wire protocol, which is not semver: this type changes with versions. set replaces the row at at; insert puts rows before index at (the list's length: at the end); remove takes count rows out at at; move takes count rows out at from and puts them back at to, an index of the list without them. The SDK sends them for bound lists by itself; a plugin writes them with WireView.writeRows.

    A three-row list becomes rows 2, 3, 1: the first row is taken out and put back at index 2 of the two rows left.

    const op: RowOp = { op: "move", from: 0, count: 1, to: 2 };
    

    1.7.0