Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Toggle the visibility of groups and subgroups #257

Closed
josdejong opened this issue Aug 21, 2014 · 10 comments
Closed

Toggle the visibility of groups and subgroups #257

josdejong opened this issue Aug 21, 2014 · 10 comments

Comments

@josdejong
Copy link
Contributor

It would be useful to implement a property visible for groups in the Timeline, similar to that of Graph2D, so you can toggle visibility of individual groups.

@AlexDM0
Copy link
Contributor

AlexDM0 commented Aug 21, 2014

docs for graph2d: http://visjs.org/docs/graph2d.html#groups

@aseiford
Copy link

I have something similar implemented in mine. Each group has a display attribute, that can be toggled through a form input, among other things. And then I just change the groups the timeline displays based off that:

    var list = groups.get({
    filter: function(item) {
        return (item.display == "shown");
    }
    })

    timeline.setGroups(list);

@mrluka
Copy link

mrluka commented Aug 31, 2014

Hey!
Related to this issue, is it possible to toggle the visibility of node and edge groups in a network?
Thanks & cheers

@AlexDM0
Copy link
Contributor

AlexDM0 commented Aug 31, 2014

Hi Luka,

The network module is separate from the timeline module but to answer your question you can take a look at issue #140. You can combine the answer there (set color to rgba(0,0,0,0)) and combine that with the examples on groups (27, 28, 29) and use that to change color settings of groups to hide what your what.

Regards,

Alex

Edit: if this is still an issue for you, could you make a new issue so we can discuss the network module separately?

@mrluka
Copy link

mrluka commented Sep 3, 2014

Hello Alex,
I further investigated the issue and for now, your suggested solution to set the bg color to the color of the canvas, is enough.
Thank you :)

@AlexDM0
Copy link
Contributor

AlexDM0 commented Sep 3, 2014

Hi,

Try rgba(0,0,0,0) As color. That make them transparent. It's a bit cleaner
because you wouldn't have to change your code if you change the background.

Regards

@AlexDM0
Copy link
Contributor

AlexDM0 commented Jan 9, 2015

Hi,

Over the last year a lot of feature requests have been made. We have just introduced our new website which has a list of the requested features. We have placed this request on that list.

The list can be found here:
http://visjs.org/featureRequests.html

An explaination of the new system can be found here:
http://visjs.org/blog.html#New\ website\ for\ vis.js!

I would like to stress that this does not mean we abandon this request. Discussion here will continue if needed on this feature but we will close it to keep our Github issue page more of a bug-todo list.

Future feature requests will still be made here and then added to the website by us.

Regards,

Alex

@AlexDM0 AlexDM0 closed this as completed Jan 9, 2015
@mojoaxel mojoaxel changed the title Toggle visibility of groups in the Timeline Toggle the visibility of groups and subgroups Oct 24, 2016
@mojoaxel
Copy link
Member

Reopening as Feature-Request issue (see #2114).
Everybody: Please feel free to implement this!

@mojoaxel mojoaxel reopened this Oct 24, 2016
@simo9000
Copy link
Contributor

simo9000 commented Nov 11, 2016

@mojoaxel I just ran into the need for this feature. If you don't mind, i'd like to take a shot at implementing this.

@yotamberk
Copy link
Contributor

yotamberk commented Nov 30, 2016

closed by @simo9000 with #2315

@mojoaxel mojoaxel added this to the Minor Release v4.18 milestone Jan 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants