philippfrenzel / yii2fullcalendar

JQuery Fullcalendar Yii2 Extension
GNU General Public License v2.0
132 stars 95 forks source link

How to change the configuration? #127

Open pedroriverove opened 6 years ago

pedroriverove commented 6 years ago

Hello, I would like to duplicate this jquery configuration to yii2fullcalendar::widget

$('#calendar').fullCalendar({
    header: {
        left: '',
        center: '',
        right: '',
    },
    editable: true,
    views: {
        settimana: {
            type: 'agendaWeek',
            duration: {
                days: 7
            },
            title: 'Apertura',
            columnFormat: 'dddd', // Format the day to only show like 'Monday'
            hiddenDays: [0, 6] // Hide Sunday and Saturday?
        }
    },
    defaultView: 'settimana',
});

This shows only Monday - Friday http://jsfiddle.net/w11xw5gt/1/

metola commented 6 years ago

Hi @Pedro25 , this need new changes in the code. The next pull request #128 solve this.

pedroriverove commented 6 years ago

Hi @metola, i think the extraction has a syntax error on line 191 in the yii2fullcalendar.php file

dsdobrzynski commented 1 year ago

@philippfrenzel Hello, is there an update on this? It is quite limiting that you can't set options...