Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > getToolkitObject
jsPlumbToolkitTestHarness.getToolkitObject() method
Find the corresponding Toolkit object for the given input.
Signature:
getToolkitObject<T = any>(obj: Element | Connection | string | Node | Group | Edge | ObjectData): ObjectInfo<T>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| obj | Element | Connection | string | Node | Group | Edge | ObjectData | A string representing an ID, a DOM element, or an existing Toolkit object. |
Returns:
ObjectInfo<T>
an object containing the given model object, plus its id, and type etc.