Not able to make tooltip on edges disappear with visible binding property

{

      toolTip:  // define a tooltip for each node that displays the color as text

        $(go.Adornment,"Auto",

        new go.Binding("visible",'tooltip',tooltip=>{return tooltip!==null}),

       

          $(go.TextBlock, { margin: 4,},

            new go.Binding("text", "tooltip",tooltip=>{

              let str=''

              for(let i=0;i<tooltip.length;i++){

              str+="\n"+tooltip[i].key + ":" + tooltip[i].value

              }

              return str

            }),

            ),

        )  // end of Adornment

    }

Even after adding the visible property with tooltip data as null in json it is not working. Any help please…FYI this is only for links for nodes it works fine

QQ录屏20220524155736
I’m not sure if this is the effect you want.

{
	toolTip:  // define a tooltip for each node that displays the color as text
	$("ToolTip",{"visible":true},new go.Binding("visible","key",key=>{
		return key=='Alpha';
	}),
	  $(go.TextBlock, { margin: 4 },
		new go.Binding("text", "key"))
	 )  // end of Adornment
}

Yepp got a solution for the same
{

      toolTip:  

        $("ToolTip",

        new go.Binding("visible",'tooltip',tooltip=>{return tooltip!==null?true:false}),

          $(go.TextBlock, { margin: 4 },

            new go.Binding("text", "tooltip",tooltip=>{

              let str=''

              for(let i=0;i<tooltip.length;i++){

              str+="\n"+tooltip[i].key + ":" + tooltip[i].value

              }

              return str

            }),

            )

        )  // end of Adornment

    }