How to hide Ports in Nodes in the palette?

How to hide Ports in Nodes in the palette?
I need those port visible when drag & drop into the canvas.
I want Ports only visible in canvas drawing area.
How can I do it?

Please help.

The most general solution is to use different node template(s) in the Palette than in the main Diagram. As GoJS Palette -- Northwoods Software shows, you can achieve arbitrarily differernt appearances and behaviors just by using different templates. Usually the templates in Palettes can be a lot simpler than those used in the editing Diagram.

There will be a way to use the same templates in both, but it depends a lot on how the ports are defined and shown.