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

Group not displayed, property visible set to true

$
0
0

@marin wrote:

I ran into a peculiar issue... I do have a lot of work in my projects with groups and at times I change their visibility - this is done by iterating over all of the nodes using an each method. The logic is placed inside the transaction.
E.g.

transaction
each
     set visibility
committransaction

On an unrelated piece of code, I call:

model.setDataProperty(group.data, 'property_name', new_object)

However, whenever I call it, the group becomes invisible, while its property 'visible' remains true..... I've just console logged the output using:

diagram.nodes.each(function (node) {

     console.log(node.data.key, node.visible)
});

What am I doing wrong?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6973

Trending Articles