Home > @jsplumbtoolkit/core > JsPlumbToolkitOptions > portExtractor
JsPlumbToolkitOptions.portExtractor property
A function to use to extract an array of ports from the data representing some node/group. Whenever a node/group is rendered, the Toolkit will use this method, if provided, to determine a list of ports for that node/group. If you use this you probably also want to define a portUpdater
. Note that if you provide the portDataProperty
then you do not need to set this.
Signature:
portExtractor?: (o: ObjectData) => Array<ObjectData>;