Our powerful JS Calendar component


Post by peter@tjecco.com »

I get this strange "No Resources" text when Calendar is shown on the screen. I want to see the date of today when Calendar is shown on the screen but no resource was yet selected. My date format should look like "9 december, 2023". How do I do that?


Post by peter@tjecco.com »

the screenshot

Attachments
Screenshot 2023-12-19 161605.png
Screenshot 2023-12-19 161605.png (18.96 KiB) Viewed 623 times

Post by marcio »

Hey peter,

Can you provide more context regarding your configuration? If you could share a sample project for us to debug with some sample data, it would be really helpful for us to assist you with this.

Is your ResourceStore empty?

Best regards,
Márcio


Post by peter@tjecco.com »

Hi Marco,

no my resources store is not empty. I didn't select anything. This is my codePen example https://codepen.io/IndreHa/pen/GRzaVer?editors=0010


Post by Animal »

Your resources are all filtered out because you have that resource filter combo.


Post by Animal »

Here's that working version of resourcefiltering using a combo that I gave you with all resources deselected:

Screenshot 2023-12-19 at 16.57.37.png
Screenshot 2023-12-19 at 16.57.37.png (156.61 KiB) Viewed 616 times

https://codepen.io/Animal-Nige/pen/vYbMxxK?editors=0110


Post by peter@tjecco.com »

Hi,
Yes, I understand, but I still want to see a date of today if I have no sources selected, even if my resources are filtered out.


Post by Animal »

You can configure any mode with this: https://bryntum.com/products/calendar/docs/api/Calendar/widget/mixin/CalendarMixin#config-descriptionRenderer

That allows total flexibility as to what shows in the tbar when that mode is active.


Post by peter@tjecco.com »

Nice it works! :)

I have one more question, I see that when my calendar is rendered it does not go to the visibleStartTime: 6. And I know that it does not work together with my

dayresource

mode, because if I disable it, then it works. How do I make that it scrolls to 6AM, when the Calendar is rendered?


Post by Animal »

It depends on the height available. It tries to scroll to that time.

It does in this example: https://codepen.io/Animal-Nige/pen/vYbMxxK?editors=0110

Because the scroll range allows 7am to move to the top:

Screenshot 2023-12-20 at 11.53.21.png
Screenshot 2023-12-20 at 11.53.21.png (846.84 KiB) Viewed 524 times

Post Reply