canCopy()
checks whether it is possible to copy a control into some other control
canCopy(id: string | number, target: string | number): boolean;
Parameters:
id: string
- the ID of the source controltarget: 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);