Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Getting TextBlocks of Panel in GoJS

$
0
0

@nvcc wrote:

I need some help with GoJS. I'm working with the sample on this page in SubGraphExpanderButtons section. For example, I want to set color of all TextBlock in a group to red by clicking the SubGraphExpanderButton. I add click event handler

...
$("SubGraphExpanderButton", {
    margin: new go.Margin(0, 3, 5, 0),
    click: function(e, button) {
       ...
    }
}),
...

According to structure of the sample I try to get all the TextBlock something like

button.panel.panel.elt(1)

because the button is in the Horizontal Panel, the Horizontal Panel is in the Vertical Panel and in the Vertical Panel there is the Placeholder which contains all the TextBlocks. But it's wrong. I'm not even sure that this selector get me exactly the Placeholder, and even it this is so, I cann't get nested elements from object I get. Looks like I've misunderstood the very concept of GoJS.

So, my question is, how can I get all The TextBlocks group?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles