# Calendar events: on cell click - which time slot?

**URL:** <https://community.weweb.io/t/calendar-events-on-cell-click-which-time-slot/1504>\
**Category:** Ask us anything\
**Created:** [November 28, 2022, 1:15am UTC](https://community.weweb.io/t/calendar-events-on-cell-click-which-time-slot/1504 "2022-11-28T01:15:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsatl](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@hsatl](https://community.weweb.io/u/hsatl)\
**Post date:** [November 28, 2022, 1:15am UTC](https://community.weweb.io/t/calendar-events-on-cell-click-which-time-slot/1504/1 "2022-11-28T01:15:34Z")

</div>

Hi [@weweb-team](https://community.weweb.io/groups/weweb-team)

I just discovered that calendar has two different actions: `on event click` and 'on cell click`.

`on event click` is self explanatory.

Regarding `on cell click`, how do I get which cell is clicked. In the context of the calendar, ideally it gives us which time window is clicked. Can you please elaborate?

Just a quick feedback, lack of documentation for standard elements is really adding time to build than it should.

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [November 28, 2022, 9:10am UTC](https://community.weweb.io/t/calendar-events-on-cell-click-which-time-slot/1504/2 "2022-11-28T09:10:05Z")

</div>

Have you tried to add a random action and see what data is available in the event?  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5491b664496ffbd0669bcc9cc7588188fc682928.png)

---

<div class="post-metadata">

**Author:** ![hsatl](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@hsatl](https://community.weweb.io/u/hsatl)\
**Post date:** [November 28, 2022, 1:14pm UTC](https://community.weweb.io/t/calendar-events-on-cell-click-which-time-slot/1504/4 "2022-11-28T13:14:15Z")

</div>

@dorilama `on cell click` event, the `{} datetime` is empty regardless of where I click on the calendar. And so is the case with `domEvent`. Were you able to retrieve the `datetime` upon cell click?

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [November 28, 2022, 1:46pm UTC](https://community.weweb.io/t/calendar-events-on-cell-click-which-time-slot/1504/5 "2022-11-28T13:46:13Z")

</div>

That’s strange.

You have a date if you use `event['cell']['date']`. Try this one.

Apparently a `datetime` property does not exist in the event, but it’s visualised in the options tab.

@aurelie I think the problem is in this line [ww-calendar/ww-config.js at 581dcd00ada5c6ed5a63d16040e7b1178a64d50d · weweb-assets/ww-calendar · GitHub](https://github.com/weweb-assets/ww-calendar/blob/581dcd00ada5c6ed5a63d16040e7b1178a64d50d/ww-config.js#L87)
