Make textblock not vissible

Hello,

I am trying out GoJS. I am working with the example ‘http://gojs.net/latest/samples/orgChartEditor.html’.

In the orgchart is visible: the name, title and ID.

I want the title not to be visible in the chart.

But I still want that if they click on it they can see the title and edit it below the orgchart.

I have been looking at the code

$(go.TextBlock, "Title: ", textStyle(),

{ row: 1, column: 0 }),

$(go.TextBlock, textStyle(),

{

row: 1, column: 1, columnSpan: 4,

editable: true, isMultiline: false,

minSize: new go.Size(10, 14),

margin: new go.Margin(0, 0, 0, 3)

},

new go.Binding("text", "title").makeTwoWay()),

Here I want to add: “display : "none"”

But that does not work.

My question is how can I make a textblock invissible?

THANKS A LOT FOR ALL YOUR HELP!

Found it ;-)

visible : false,

By the way, if you are always going to have that text be not visible, I suggest you just delete those two TextBlocks. There’s no point in creating those objects if you don’t need them, and there’s no point in GoJS trying to update their values via that Binding.