Skip to main content


adds a copy of an item and places it in the specified position

copy(id: (string | number) | (string | number)[], index: number, target?: object, targetId?: string | number): (string | number) | (string | number)[];


  • id: (string | number) | (string | number)[] - the ids of the items to copy
  • index: number - the position of a copy
  • target: object - a tree collection where the copy will be stored
  • targetId: string | number - (for menu options) the ID of a menuItem to which a copy of the menu option will be placed


The item's id or an array with ids of items.

// another toolbar"save_btn",1,;