twinssbc / Ionic-Calendar

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

weekview cell color not changed #96

Closed adnanjarfy closed 7 years ago

adnanjarfy commented 8 years ago

thank you for your great work, on weekview the color of the cell not changed when it get clicked it raise the event but color not changed.

twinssbc commented 8 years ago

@adnanjarfy Yes, I didn't add logic to change the display of clicked cell. The reason that selected cell in the month view gets changed, is because it can indicate which date is selected and list all the events selected on that date. But in weekview, it already lists all events.

adnanjarfy commented 7 years ago

@twinssbc thank you for replay, but if i want to change it where can i do that please

twinssbc commented 7 years ago

@adnanjarfy I'm afraid you need to modify the source code. First you need to expose a selected field for each cell so that you can use ng-class to add customised style based on the selected field. Next you need to modify the select method in the weekview to set the selected state for the clicked cell and reset other cells' state. You can refer to the similar logic in the monthview.

adnanjarfy commented 7 years ago

@twinssbc thank you so much