UNPKG

jointjs

Version:

JavaScript diagramming library

6 lines (4 loc) 285 B
<p> Add the text-only description in form of a <code> &lt;title&gt;</code> element to the associated node. The title is not rendered as part of the graphics, but it's displayed as a tooltip. </p> <pre><code>element.attr('rect/title', 'Description of the rectangle');</code></pre>