twinssbc / Ionic2-Calendar

A calendar component based on Ionic framework
https://ionic-calendar-demo.stackblitz.io
MIT License
388 stars 196 forks source link

Weekview cell not Highlighted when clicking #504

Open adnanjarfy opened 4 years ago

adnanjarfy commented 4 years ago

Dear first of all, thank you for your library , I am working on ionic 3 but when I am using weekview the hour cell not Highlighted when click in monthview ,every thing is ok

thanks

twinssbc commented 4 years ago

@adnanjarfy Actually highlight the cell when clicking is only supported in month view.

adnanjarfy commented 4 years ago

can I set start and end date for weekview?

twinssbc commented 4 years ago

@adnanjarfy You mean you don't want to display 7 days in the week view?

adnanjarfy commented 4 years ago

i mean to start the calendar from today and disable past days in weekview

twinssbc commented 4 years ago

@adnanjafy you could set the binded currentDate to today. The calendar will navigate automatically. You could use lockSwipeToPrev option to lock swiping to the previous days.

adnanjarfy commented 4 years ago

lockSwipeToPrev is preventing me to backward from next week to current week

twinssbc commented 4 years ago

@adnanjarfy This is exactly the effect of lockSwipeToPrev. Then what do you mean you want to display the past days?

adnanjarfy commented 4 years ago

yes, I want to disable past days before today,I am working on appointment App and I want to change color of past days and prevent the user from selecting past time , I worked around by adding events and changing the color to gray and when user clicks on past time , the app shows alert weekview

twinssbc commented 4 years ago

@adnanjarfy The lockSwipe option only disabling the swiping, doesn't disable selection. You could use markDisabled option to achieve that.

marcopes commented 4 years ago

Hi all, someone worked around in some way to highlight the cell when clicked in weekview?