Fullcalendar.min.js adding button in fc-header

3,481 views
Skip to first unread message

hvvl

unread,
Aug 3, 2012, 6:16:29 PM8/3/12
to agendav...@googlegroups.com
Hi guys,

I want to add a button near month - week - day - Calendar in the fc-header table.

Since the fullcalendar javascript script is provided in minimum version, adding a button is too hard for me.

Does anyone have any suggestions please?


Jorge López Pérez

unread,
Aug 4, 2012, 2:44:14 PM8/4/12
to agendav...@googlegroups.com
Hi,

El 04/08/12 00:16, hvvl escribió:
I added two buttons to the fullcalendar header just manipulating the
DOM, making no changes to FC sources.

Have a look at
https://github.com/adobo/agendav/blob/master/web/public/js/app.js#L161 ,
it will give you a clue.

Regards.

--
Jorge López Pérez
http://adobo.org
Jabber: jor...@jabberes.org

Ruben Decramer

unread,
Aug 8, 2012, 10:03:47 AM8/8/12
to agendav...@googlegroups.com
Hi Jorge,

thanks!

With the button i want to create a listview to see tasks...

Any ideas on how to create a new listview?

Thx!

Jorge López Pérez

unread,
Aug 8, 2012, 2:30:58 PM8/8/12
to agendav...@googlegroups.com
Hi Ruben,

El 08/08/12 16:03, Ruben Decramer escribió:

> With the button i want to create a listview to see tasks...
>
> Any ideas on how to create a new listview?

I'm afraid that requires a lot more code than a plain button does.
You'll have to hack the fullcalendar code to add a new view type, and
provide the necessary data from the server (VTODO components).

Maybe this large commit from Roundcube fullcalendar fork helps you to
define a new view inside Fullcalendar:

https://github.com/adobo/fullcalendar/commit/9015d13badc41d0b5c0f286ffbf0cc6c94480a33

IMHO it's not worth the effort, I think it would be easier to add task
management without modifying fullcalendar but AgenDAV UI. But that's
just my opinion, of course.

Don't hesitate to share your code if you finally do it!

Ruben Decramer

unread,
Aug 8, 2012, 2:36:00 PM8/8/12
to agendav...@googlegroups.com
Hi Jorge,

thanks for your answer!

If i want to  add task management without modifying fullcalendar but AgenDAV UI...
Where should i start? Any ideas? I added my button in app.js and want to implement the same list view as the
Calendar button but for tasks.

Thanks for your help!

hvvl

unread,
Aug 10, 2012, 3:24:46 AM8/10/12
to agendav...@googlegroups.com
Hi Jorge,

I'll start my project with fullcalendar. Agendav is great but doesn't fit for the job.
Reply all
Reply to author
Forward
0 new messages