Premium support for our pure JavaScript UI components


Post by gorakh.nath »

Hi Team,
How can we change the format of the current time and always we can set focus to that time on page first load.I attached the screenshot for more details.

Attachments
Screenshot 2021-10-22 at 10.36.15 AM.png
Screenshot 2021-10-22 at 10.36.15 AM.png (199.09 KiB) Viewed 1113 times

Post by alex.l »

Please check this config https://bryntum.com/docs/scheduler/api/Scheduler/feature/TimeRanges#config-currentDateFormat

The date format to show in the header for the current time line, see showCurrentTimeLine

All the best,
Alex


Post by gorakh.nath »

Hi,
The same config I added but not working:

 timeRangesFeature = {{
                         showCurrentTimeLine:true
                     }}
currentDateFormat= 'hh:mm A'

I attached the sample app for reference.
If I will change hh:mm A to other format also then it is not applying that format.

Attachments
currentTimeFormat.zip
(2.98 MiB) Downloaded 54 times
Screenshot 2021-10-25 at 10.28.17 AM.png
Screenshot 2021-10-25 at 10.28.17 AM.png (256.89 KiB) Viewed 1078 times

Post by alex.l »

Hi gorakh.nath,

That's a config for timeRangesFeature:

                     timeRangesFeature = {{
                         showCurrentTimeLine : true,
                         currentDateFormat: 'ddd YY' // use the format you need
                     }}

I checked that code, it works great.

All the best,
Alex


Post by gorakh.nath »

Hi alex,
Its working thanks


Post Reply