twinssbc / Ionic-Calendar

A calendar directive for Ionic framework
http://twinssbc.github.io/Ionic-Calendar/demo
MIT License
159 stars 73 forks source link

calendar #87

Open jmanojkumar27 opened 8 years ago

jmanojkumar27 commented 8 years ago

how to i set the date as 1 in every scroll of month view? when i try to set the date as 1 in every month view it works in month view but it affects in the week and days view . when i selected on event from month view and i try to see in week view it shows selected event from month view to week view correctly but when try to scroll next week it shows the same week page.

jmanojkumar27 commented 8 years ago
       function getAdjacentCalendarDate(currentCalendarDate, direction) {
        var step = self.mode.step,
            calculateCalendarDate = new Date(currentCalendarDate),
            year = calculateCalendarDate.getFullYear() + direction * (step.years || 0),
            month = calculateCalendarDate.getMonth() + direction * (step.months || 0),
            date = 1 /*calculateCalendarDate.getDate() + direction * (step.days || 0)*/,
            firstDayInNextMonth;

i have set in my js file like this to show the date as 1 in every month view try it .and i hope you to give me a good solution to fix it .

twinssbc commented 8 years ago

@jmanojkumar27 You can change the current date by setting the variable bound to ng-model. In the rangeChanged callback, you can first check the current calendar mode, then set the current date.

jmanojkumar27 commented 8 years ago

thx that issue as been fixed

jmanojkumar27 commented 8 years ago

your calendar.css is not supporting for all device . espeacially tabs and ipad how could i resolve it .so i am writing media querie for the piexls

jmanojkumar27 commented 8 years ago

any other way to use your css file .without writing the media queries

twinssbc commented 8 years ago

@jmanojkumar27 Why it's not working in tablets and iPads? If you open the demo page in the browser and resize the browser, you will see the calendar is responsive.