twinssbc / Ionic-Calendar

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

Click on cell to create event #106

Open suranavarun opened 7 years ago

suranavarun commented 7 years ago

Hi, How can i create an event by clicking on any of the cell in day/week view.

Varun

twinssbc commented 7 years ago

@suranavarun The calendar itself doesn't provide a view to create an event. When you click a cell in day/week view, it will trigger the timeSelected callback. In this callback, you can either navigate to another page or popup a dialog to allow user filling the new event detail.

suranavarun commented 7 years ago

@twinssbc here if i click on cell which already has a 30min event then how to get the selectedTime as the next 30min in timeSelected callback, i.e if 2PM to 3PM cell has an event from 2PM to 2:30PM, now how to click on 2nd half of the cell to get selectedTime as 2:30PM.

twinssbc commented 7 years ago

@suranavarun The cell is from 2PM to 3PM, so you can only get the 2PM not 2:30PM. Also note that, it's probably not easy to select the exact half hour in a mobile device.