Search code examples
jointjsrappid

Display Ports Dynamically in JointJs


Is it possible to show ports programmatically in JoinJS? This is what I want to do.

  • Using RappidJs.
  • Would like to not show ports in Stencil.
  • Show the ports after dropping cell on paper.

I see API for addPort and removePort but don't see anything around hide / display.


Solution

  • Please try setting the port opacity attribute to show ports only after dropping to paper.

            attrs: {
                    '.port-body': {
                        opacity: 1 // or 0
                    }