Skip to main content

Home > @jsplumbtoolkit/browser-ui-angular-drop > jsPlumbSurfaceDropComponent > dataGenerator

jsPlumbSurfaceDropComponent.dataGenerator property​

Function to use to generate an initial payload when the user starts to drag something from this component. Optional, but you should almost certainly consider providing this, or a typeGenerator, since without one of these it is not possible to determine the type of object beind dragged.

Signature:

dataGenerator: DataGeneratorFunction<T>;