Sign up for our free webinar Visualize it: The Secret of High-Performing Teams

Sign up for free webinar

Setting global diagram variables locally

Categories: feature

An updated version of this blogpost can be found here, Use custom properties including tooltips, custom links, and placeholders in draw.io

draw.io 5.5.4.0 adds a special field called “placeholder” in the metadata of cells. Setting “placeholder” as the key inserts the associated value as a global key with the cell label as the value. Take a look at this example diagram (click on it to open in draw.io):

Example metadata draw.io diagram

The upper and lower “John Doe” labels are defining a global variable called “author”. Editing either label will change the other, since they share the same placeholder value. Selecting a cell and pressing ctrl+M opens the metadata dialog. The paragraph starting “This diagram was…” is referencing the placeholder fields in the uppermost cell. Changing the labels in the top cell changes the cell below that references it, but not vice versa. Previously, variables and referencing variables was more focused on group hierarchies of cells, this mechanism allows more flexibility.

Share this story

Experience the power of draw.io

How would you like to explore?

draw.io Digest – Subscribe to our Newsletter

Yes, I would like to receive the draw.io for Confluence and Jira newsletters, whitepapers, the latest blog posts, and announcements. (You can unsubscribe at any time.)

For more information about our data usage, please refer to our privacy policy.

Here you will find an overview of all cookies used. You can give your consent to whole categories or display further information and select certain cookies.