New google calendar, “pop-out” events, if they don't fit in the defined area

有些话、适合烂在心里 提交于 2019-12-23 01:58:43

问题


Take a look at what the new google calendar does when there are too many events to fit in the defined square. You can click the +2 more link (or whatever it may say), and the square pops out a bit... and displays everything.

Does anyone know of a JS/JQuery library that has this functionality?

Example: http://i.imgur.com/86tom.png

Thanks!


回答1:


To get the pop out box, you could use a jQueryUI dialog and position it where you want it. Re-style it to match your UI, of course.

If you are also hoping to get the logic to figure out how many items are hidden, and display a "+n more..." message there, that seems like it could be a little specific for a plugin, but maybe not.

Here's one simple implementation. http://jsfiddle.net/gilly3/sxGSr/ There's a bit of hard-coding that could be made more dynamic, but this may give you a start.



来源:https://stackoverflow.com/questions/7604301/new-google-calendar-pop-out-events-if-they-dont-fit-in-the-defined-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!