timeglider / jquery_widget

Timeglider's JS Widget component. See README for details.
193 stars 41 forks source link

Is it possible to include any kind/number of data in event window? #21

Closed tashimaya closed 12 years ago

tashimaya commented 12 years ago

Hi

I've just discovered Timeglider and I'm playing with the following demo:

http://timeglider.com/jquery/large.html

When you click on a timeline event, a little window pops up. It may contain an image, a description and a link.

Does Timeglider have an ability to allow user to change its size and include any kind/number of data in this window?

For example, I'd like to include a YouTube video, a list of links and several images and so on.

Also, I've noticed a tooltip can remain on the timeline if you zoom in while it's being displayed.

Thanks for creating this amazing jQuery plugin!

apshoemaker commented 12 years ago

From my limited use of the plugin so far, it seems that the description field does not escape any html, so as long as it is part of the same string, it should show up.

timeglider commented 12 years ago

You can include any HTML in that data — yes (though in our app at timeglider.com, it will be a lot more restricted. So you can add iFrames for video, or whatever. You can also add other data points into the JSON and have those available. As far as the size of the modal, that's changable too with CSS. Since this was posted, we also have a "modal_type" that can be set to "full" — either in the widget options (for doing it for all events), or per-event for stuff that has images, longer descriptions, etc.