JSON sa datumima u kalendar

Dakle imam neki json feed sa chanel managera nekog.
Sada bi to nekako posložio u user friendly sučelje za prikaz.

Ima tko kakvu pametnu?

Mislio sam neku skriptu koja odvrti generiranje svih polja kalendara za tekuću godinu pa za svaki dan samo ubacim provjeru ako je u rasponu sa ovog JSONa ili tako nešto.

Orovjeri fullcalendar, vrhunski MIT js kalendar.

Ovdje sam naletio na examplove. Trebalo bi ti pomoći.

HTML:

<div id="calendar"></div>

JS:

$('#calendar').fullCalendar({
    defaultView: 'month',
    defaultDate: '2018-11-12',

    eventRender: function (eventObj, $el) {
        $el.popover({
            title: eventObj.title,
            content: eventObj.description,
            trigger: 'hover',
            placement: 'top',
            container: 'body'
        });
    },

    events: [{
            title: 'All Day Event',
            description: 'description for All Day Event',
            start: '2018-11-01'
        },
        {
            title: 'Long Event',
            description: 'description for Long Event',
            start: '2018-10-07',
            end: '2018-11-10'
        },
        {
            id: 999,
            title: 'Repeating Event',
            description: 'description for Repeating Event',
            start: '2018-11-09T16:00:00'
        },
        {
            id: 999,
            title: 'Repeating Event',
            description: 'description for Repeating Event',
            start: '2018-11-16T16:00:00'
        },
        {
            title: 'Conference',
            description: 'description for Conference',
            start: '2018-11-11',
            end: '2018-11-13'
        },
        {
            title: 'Meeting',
            description: 'description for Meeting',
            start: '2018-11-12T10:30:00',
            end: '2018-11-12T12:30:00'
        },
        {
            title: 'Lunch',
            description: 'description for Lunch',
            start: '2018-11-12T12:00:00'
        },
        {
            title: 'Meeting',
            description: 'description for Meeting',
            start: '2018-11-12T14:30:00'
        },
        {
            title: 'Birthday Party',
            description: 'description for Birthday Party',
            start: '2018-11-13T07:00:00'
        },
        {
            title: 'Click for Google',
            description: 'description for Click for Google',
            url: 'http://google.com/',
            start: '2018-11-28'
        }
    ]
});

Koristi verziju 4 fullcalendara ima ih dosta ranije. Posalji primjer kakav Json objekt imas i kakav prikaz kalendara zelis pa cemo napraviti neke primjere. Samo nisam uz komp. do sljedeceg tjedna, ali nema veze


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Profit Monkey