Tutorial: Examples

Examples

Get Started

MyEventCalendar("calendar",{sources:["http://localhost/events"], target:"http://localhost/events"})
//or
let events = [
    {
        start:"2019-08-29",
        end:"2019-08-29",
        title:"2019-08-29",
    }
]
MyEventCalendar("calendar",{source:events, target:"http://localhost/events"})

Creating a calendar with a chosen themes

//['panther', 'santa', 'easterCrunch', 'default', 'halloween', 'greyJoy']
MyEventCalendar("calendar",{theme:"santa"})

Allow user to create event

MyEventCalendar("calender",{showAddEventButton:true})
//or
MyEventCalendar("calender",{showAddEventButton:function(){return true;}})

Add sources and target server


MyEventCalendar("calendar",{sources:["http://localhost:9000/events"], target:"http://localhost:9000/events"})

Create admin area

MyEventCalendar("calendar",{isAdmin:true})
//or
MyEventCalendar("calender",{isAdmin:function(){return true;}})