0

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.

Sanjay Parmar
  • 67
  • 1
  • 1
  • 7
  • I have tried following but it has no effect. cell.attr({ '.joint-port': { display: 'none', visibility: 'hidden' }, '.inPorts': { display: 'none' }, '.outPorts': { display: 'none' } }); – Sanjay Parmar Jan 16 '17 at 00:48

1 Answers1

1

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

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