-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Timeline Group Visibility #2315
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! much cleaner =) Good Work
|
@mojoaxel Can you please review this? |
|
I like this feature... |
|
When can I get a new release version? |
|
Hopefully next week |
|
@simo9000 Thanks! |
|
I cannot get this to work here.. The "hide" buttons don't seem to trigger anything. I am not good at javascript, so perhaps I misunderstood the instructions. I simply replaced the original files with the ones here: https://github.com/almende/vis/pull/2315/files/4fc37ddb862ee4aa8208957635078fe2f6ef80da I hope someone can help, thanks! |
|
@Broekhuis Are you using the |
|
Eh.., I'm not sure... Today I downloaded the ZIP from here : https://github.com/almende/vis/archive/master.zip and then replaced the files mentioned here: https://github.com/almende/vis/pull/2315/files/4fc37ddb862ee4aa8208957635078fe2f6ef80da |
|
Ah! I just saw on the 'main page' there's a dropdown with which I can choose from many different versions. So I should use: "Branch: develop", right? |
|
yes =) |
|
@yotamberk Thank you! |
|
Hm, I installed the develop version, but it still doesn't work here. The hide-buttons don't trigger anything.. I temporarily uploaded it to here: http://www.caporange.com/vis-develop/examples/timeline/groups/groupsEditable.html Can you see what's wrong? |
|
@Broekhuis I inspected dist/vis.js you have deployed with the groupsEditable.html and it does not contain the library changes from this PR. It looks like you probably need to build the develop branch and redeploy the library. |
|
I see... I thought it was enough to simply copy the files and folders, but this sounds as if I need to do something like compiling the code ... I'm afraid this is far beyond my knowledge, so I'll probably just wait until this feature is implemented in the 'normal' version. Thanks a lot & regards |
Resubmit of #2303. I chose not to completely remove modifications to the library but instead incorporate the method @yotamberk described in #2303 into
Timeline.setGroups. This PR will automatically filter groups wheregroup.visible == false. This is more efficient than what I had proposed in #2303 in that the hidden groups do not get rendered, however it still provides a simple imperative means for the library user to hide groups.