Arrow icon
See all demos

Working with Ports

Are you working with ports and looking for inspiration? Check out this demo showing the following features: connection events, connection validations, magnet validations, custom ports markup, custom link tools, delayed link tools removal and highlighting available ports.
Demo instructions
Link the output and input ports of different elements (1-3) and hover over the links to use features such as custom link tools or switch the output port to another (available) input port. Follow the connection events displayed in the right panel.
Working with Ports

See the Pen JointJS: Working with Ports by JointJS (@jointjs) on CodePen.

Made with JointJS+

Only available with the JointJS+ commercial license in the apps/ directory of your package. Don't have a license yet? Start a trial and use the source code of all our demos for free, with no strings attached, for 30 days.

Made with JointJS

Available in the JointJS open-source library which helps developers create simple visual applications in less time.

Speed up your development with a powerful library

Leverage a time-tested JavaScript diagramming library using the best of HTML5 and SVG to accelerate your development.