Skip to main content

canCopy()

checks whether it is possible to copy a control into some other control

canCopy(id: Id, target: Id): boolean;

Parameters:

  • id: string - the ID of the source control
  • target: string - the ID of the target control

Returns:

true if the control can be copied into another control; otherwise, false.

Example

component.data.canCopy(from.id, id);