Arrow icon
See all demos

Element, Port and Link Label Markup

You probably know that you can style your JointJS elements in many different ways by providing your own SVG markup. But did you know that you can use the same custom markup not only to define elements but also ports or link labels? Have a look at this example.
Demo instructions
Note that the same markups that are used to define elements are also used for ports and link labels.
JointJS – Element, Port and Link Label Markup

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.