Paul-DS / bootstrap-year-calendar

[DEPRECATED] A fully customizable year calendar widget, for boostrap !
Apache License 2.0
294 stars 243 forks source link

selectRange - get Different variable? #172

Open JinsilJo opened 6 years ago

JinsilJo commented 6 years ago

hello !

selectRange(e) holidayKindCode <- how get value??

Help Me Plz ...

$(dt01).each(function () {
    calendarData.push({
        name: this.HolidayKindName,
        holidayKindCode: this.HolidayKindCode,    <--
        location: this.AMPMNm,
        startDate: new Date(this.Day + baseHhmmss),
        endDate: new Date(this.Day + baseHhmmss),
        color: 'green'
    });
});

$('#calendar').calendar({ 
    selectRange: function(e)
    {
            alert(e.holidayKindCode);  <-- undefined
            editEvent({ startDate: e.startDate, endDate: e.endDate });
    },
    dataSource: calendarData
});