# Perspective Calendar

**URL:** <https://forum.inductiveautomation.com/t/perspective-calendar/39543>\
**Category:** 3rd Party Modules\
**Created:** [October 9, 2020, 4:14pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543 "2020-10-09T16:14:12Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [August 7, 2023, 9:37am UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/21 "2023-08-07T09:37:40Z")

</div>

Nader

We will take a look, and get back to you.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [August 29, 2023, 12:15pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/22 "2023-08-29T12:15:07Z")

</div>

I forgot to update this post. All of the challenges Nader found for us were resolved. An updated module is available at [https://modules.bijc.co.uk/](https://modules.bijc.co.uk/), The is a change log available. Anyone with an existing licence can upgrade.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 13, 2025, 2:11am UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/23 "2025-03-13T02:11:08Z")

</div>

# Q1 - Event Time Format (24h) - Solved

Hey @jonathan.taylor @Chris_Taylor we're having a look at your module as I think it might be a good fit for a current project (the timeline view would be nicer for us, but I see it's a premium paid feature of the underlying library).

Is it possible to change the date formats in the events from 12 hr to 24 hr to match the times on the left in the time grid views?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4fcda750e2ac49d4326dc62ac86ea23da73f7352.png)

Edit:  
Found it!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/1/01666cc95859aa0154aa0eb116c36b3767555311.png)

This should be the default option imnsho

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 13, 2025, 3:33am UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/24 "2025-03-13T03:33:12Z")

</div>

# Q2 - Customisable Date Range

Another question: isit possible to display a customisable date range? I want to be able to show the next 10 days on the time grid view.

I can see the next 7 days by setting the `props.dateAndTimeDisplay.firstDay` to today, but wondering if I can change the duration of days shown?

# Q3 - Event Titles New Line Formatting - SOLVED

~~One more. How can I add formatting to the event titles? Really just honouring line feeds. E.g. 1500 ML/d and 201 ML should be on two lines~~

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/12854506faaefdb91e02b6bcedeaa17262e9a1f9.png)  
Oh, it's as simple as just adding `style.whiteSpace: pre-wrap` to the root component  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/0/80e5fcc3484b6c0b012f887bbdf5b65724d872a8.png)

# Q4 - Inline Event Title Styling

It'd be nice to be able to make parts bold as well, i.e. provide inline formatting

# Q5 - Initialisation of date issue - SOLVED

~~I can't find how to initialise the calendar to a particular date. I can set `props.currentCalendarDate.date` to today's date and the view moves to today, however if I bind this to `dateFormat(now(0), 'YYYY-MM-dd')` which is how I usually set init values, the value isn't set and remains at the default value which is last week~~  
This seems to have been a race condition with my binding on `props.dateAndTimeDisplay.firstDay` which I was binding to `getDayOfWeek(now(0)) - 1` to show 7 days from today inclusive. I removed this binding and used an onChange script on the date instead which sets the firstDay itself

# Q6 - Mobile Device Touch Events

Me again 😬

I'm testing on mobile and noticed that these events don't fire:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/b/cbda30b1f5267e0b09fc2c749271b25f81bd9555.png)  
(onEventClick works when you click on an existing event)

However if I enable `props.eventPopup.useCreateEventPopUp` then this create event popup shows up on mobile. However, I'm unable to use this standard popup for our application as we need to add other contextual info. Is it possible to get touch events to be handled in the `onEvent*` events?

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 15, 2025, 2:19pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/25 "2025-03-15T14:19:57Z")

</div>

> [@nminchin](#):
>
> This should be the default option imnsho

Well, we can agree to disagree, we use the 24h format as default

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 15, 2025, 2:53pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/26 "2025-03-15T14:53:36Z")

</div>

I think Nick is recommending 12-hour mode `false` by default. You're in agreement.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 15, 2025, 3:20pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/27 "2025-03-15T15:20:24Z")

</div>

> [@Transistor](#):
>
> You're in agreement

Doesn't sound like me.. I miss read

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 15, 2025, 3:22pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/28 "2025-03-15T15:22:01Z")

</div>

Nick, I'll get Lewis to take a look but we are super busy at present.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 15, 2025, 9:28pm UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/29 "2025-03-15T21:28:16Z")

</div>

No worries! We'll be purchasing the module regardless 🙂 it's really just the mobile device touch events (Q6) that would be nice to have from my list, but other than that, it does all we need 👍

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 24, 2025, 4:24am UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/30 "2025-03-24T04:24:54Z")

</div>

Also, I noticed 1000s of these log entries in the gw as well for the celandar after simply dragging it onto the View:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/ac0f5bc277372ac7e16780ed9ab8aa130021a832.png)

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 24, 2025, 7:13am UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/31 "2025-03-24T07:13:06Z")

</div>

this king of log can occur when there is some recursive binding.  
binding A trigger binding B which trigger binding A. or a more complex chain.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 24, 2025, 7:58am UTC](https://forum.inductiveautomation.com/t/perspective-calendar/39543/32 "2025-03-24T07:58:15Z")

</div>

I think you're right, I don't think my session with the calendar with issues was shutdown when I was looking at the log, so It's more than likely an issue on my side than with the component. I think I fixed it inadvertently after I refactored some things after prototyping

[Previous page](https://forum.inductiveautomation.com/t/perspective-calendar/39543.md?page=1)
