almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Navigation-buttons like in network #913

Open felixhayashi opened 9 years ago

felixhayashi commented 9 years ago

Hi guys,

The network module has pretty sweet buttons that could be reused for the timeline module as well (which would also create a matching user experience). A tiddlywiki contributor (@kixam) who maintains the timeline-module as plugin for our wiki reused the network buttons very elegantly in the timeline. Maybe you like the idea:

Demo Site http://kixam.github.io/TW5-visjsTimeline/

-Felix

AlexDM0 commented 9 years ago

Hi,

We'll see what we can do :) Maybe you should change the css tough so the circle is also grey ;).

Regards,

Alex

felixhayashi commented 9 years ago

We'll see what we can do :)

Thanks

Maybe you should change the css tough so the circle is also grey ;)

Good point :)

kixam commented 9 years ago

hi,

If you go forward with this, it would be nice to have the navpad inside the vis-center div, instead of over the vis-timeline main div, so that it would not overlap with group or x-axis labels.

Also, if I may, I think this thread might be mislabeled? This feature is already available to Network, but here we are discussing the opportunity to have it for Timeline as well.

kixam

yotamberk commented 7 years ago

There is an example of how to do this without an internal option: http://visjs.org/examples/timeline/interaction/navigationMenu.html

kixam commented 7 years ago

That is not quite the same as the navigationButtons option in Network interaction options, that creates the buttons with styles and attaches event handlers, all by itself. This has 2 advantages:

as for my plugin, it is working fine as it is. The present thread is just a suggestion to make this nice feature available to Vis.js Timeline users out of TiddlyWiki

yotamberk commented 7 years ago

@kixam using a custom navbar is not difficult... I don't agree that having an option like in the network is "much simpler". The example is extremely simple. In terms of consistency, the timeline and network are very different - in implementation, style, options and behavior. I'll reopen this feature, but I can't justify the work on it.