Skip to content

Make a second label #1749

Discussion options

You must be logged in to vote

You can extend predefined shapes in JointJS or create custom elements.
https://resources.jointjs.com/tutorial/custom-elements
https://resources.jointjs.com/tutorial/ts-shape

For the standard.HeaderedRecord, you could create some custom markup like the following:
https://resources.jointjs.com/docs/jointjs/v3.5/joint.html#dia.Cell.markup

markup: [{
        tagName: 'rect',
        selector: 'body'
     }, {
         tagName: 'rect',
         selector: 'header',
     }, {
        tagName: 'text',
        selector: 'headerText',
        className: 'headerLabel'
     }, {
        tagName: 'text',
        selector: 'headerSubText',
        className: 'headerSubLabel'
     }, {
        tagName: '…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kumilingus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1748 on July 25, 2022 08:15.