I have to implement a calendar widget that triggers within a table. The use case I was given was the following:
- If the user clicks an empty cell, today's date gets populated.
- If the user clicks a cell containing a date, the calendar opens to that date.
- If the user right-clicks a cell with content, the cell empties
Although, I implemented this use case, I find that right-clicks aren't intuitive for web users. As well, in IE, the context menu opens up, so it's not a great user experience.
Initially, a single click would open up the calendar, but the client found that the extra step of closing the calendar a bit annoying since the table contained 1000's of rows and a data entry person needs to populate 1000's of dates regularly.