Blog post preview
August 10, 2022

Demo Wednesday: Change element text alignment in inspector

We've published a new demo: Change element text alignment in inspector

How to configure an inspector field to control multiple attributes at once? One option is to define a custom element which binds a high-level attribute (textAlignment) to multiple presentation attributes (textAnchor, textVerticalAnchor. x, y).

Here is a CodePen that shows exactly that.

Change element text alignment in inspector

For more examples of JointJS and JointJS+, see our CodePen profile and our official documentation.

To see all the awesome demos we've created so far, check out our Github Discussions.

Blog post author
Marek Hozak
Marketing guy, father, and sports fanatic who loves to learn about new technologies.
No items found.
Stay in the loop

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.