Function addRowsBelow

  • Adds multiple new rows below the selected rows.

    Type Parameters

    • T extends object

      The type of the row data.

    Parameters

    • ds: Ds<T> | Dsm<T>

      The dataset or dataset manager.

    • source: T[]

      The array of rows to be added.

    • Optionaltarget: {
          changeSel?: boolean;
          select?: Loc[] | "rows";
          useClone?: boolean;
          which?: "top" | "all" | "bottom";
      }

      Optional target configuration.

      • OptionalchangeSel?: boolean

        Whether to update the selection.

      • Optionalselect?: Loc[] | "rows"

        Specifies the selection scope. Defaults to "rows".

      • OptionaluseClone?: boolean

        Whether to clone the source rows before adding.

      • Optionalwhich?: "top" | "all" | "bottom"

        Determines where the new rows are applied. Defaults to "all".

    Returns { success: boolean }

    • The result of the operation.