Premium support for our pure JavaScript UI components


Post by gorakh.nath »

Hi Team,
I want to focus my scheduler on the current time, I tried different combination on the visible date but could not focus to the current date time.I attached the sample app for reference.

visibleDate = {{
 date: todayAt12,
 block: 'center'
}}

Here I tried block with other options also like start, end but there is no any change.
I also tried date: new Date() but still not working.

Attachments
VisibleDate.zip
(2.98 MiB) Downloaded 48 times
Screenshot 2021-10-25 at 10.50.11 AM.png
Screenshot 2021-10-25 at 10.50.11 AM.png (665.57 KiB) Viewed 312 times

Post by alex.l »

You have visibleDate defined twice. First entry is

                     visibleDate = {{
                         date: todayAt12,
                         block: 'center'
                     }}

and the second one in very end that overwrite your config

                     visibleDate = {new Date()}

If you remove the second one, it will fix your problem. Tested in your app.

All the best,
Alex


Post Reply