---
source: https://www.jointjs.com/blog/demo-wednesday-change-element-text-alignment-in-inspector
generated: 2026-04-07
format: markdown
---

We've published a new demo: [Change element text alignment in inspector](https://www.jointjs.com/demos/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](https://codepen.io/jointjs/pen/WNzdWQL/3cf51a20cbfb69dc02886c3c669e9696).

For more examples of JointJS and JointJS+, see our [CodePen profile](https://codepen.io/jointjs) and our [official documentation](https://resources.jointjs.com/?_ga=2.157485114.162715808.1653039446-2112624975.1653039446).

To see all the awesome demos we've created so far, check out our [Github Discussions](https://github.com/clientIO/joint/discussions?discussions_q=label%3A%22Demo+Wednesday%22).