seankenny / fullcalendar

Full-sized drag & drop event calendar (jQuery plugin)
http://arshaw.com/fullcalendar/
MIT License
60 stars 39 forks source link

Ability to put HTML in resource.name #46

Open nkostadinov opened 9 years ago

nkostadinov commented 9 years ago

Why is the resource.name escaped ? I think it would be a good idea to allow HTML content there or a callback rendering function.

sancilardi commented 9 years ago

I agree with you. The resource.name used to be able to handle html content but now just renders html code as text.

As a workaround, you can add this when creating the calendar instance:

            loading: function(isLoading) {
              if (!isLoading)
              {
                //make column headers html
                $(".fc-widget-header").each(function(i) {
                    $(this).html($.parseHTML($(this).text()));
                }); 
              }
            }