adesigns / calendar-bundle

This bundle allows you to integrate the jQuery FullCalendar plugin into your Symfony2 application.
MIT License
96 stars 61 forks source link

Use theme in this bundle #48

Closed amandlabeautin closed 8 years ago

amandlabeautin commented 8 years ago

Hi ! Can I use theme like in FullCalendar v1 ([http://fullcalendar.io/docs1/display/theme/]) ? `{% block javascripts %}

<script type="text/javascript" src="{{ asset('bundles/adesignscalendar/js/fullcalendar/jquery.fullcalendar.min.js') }}"></script>
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
<script type="text/javascript">
    $(function () {
        var date = new Date();
        var d = date.getDate();
        var m = date.getMonth();
        var y = date.getFullYear();

        $('#calendar-holder').fullCalendar({
            header: {
                left: 'prev, next',
                center: 'title',
                right: 'month,'
            },
            lazyFetching: true,
            timeFormat: {
                // for agendaWeek and agendaDay
                agenda: 'h:mmt',    // 5:00 - 6:30

                // for all other views
                '': 'h:mmt'         // 7p
            },
            monthNames: ['Janvier', 'Fébrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet','Août', 'Septembre', 'Octobre', 'Novembre', 'Decembre'],
            dayNamesShort: ['dim', 'Lun', 'Mar', 'Mer','Jeu', 'Vend', 'Sam'],
            theme: true,
            eventSources: [
                {
                    url: Routing.generate('fullcalendar_loader'),
                    type: 'POST',
                    // A way to add custom filters to your event listeners
                    data: {
                    },
                    error: function() {
                       //alert('There was an error while fetching Google Calendar!');
                    }
                }
            ]
        });
    });
</script>

{% endblock %}`

I download the file query.theme in jquery but it doesn't work.

Can you help me ?