Premium support for our pure JavaScript UI components


Post by vbureanu »

Hello,

We use Angular 11.
We want to make a GET and get Calendar Intervals from a GET, instead of including them into general data.json JSON.
How we can do it by using schedulerComponent.instance?
Unfortunately still have no any idea even after reading of Bryntum API.

Many thanks,
Vitalie

Screenshot 2022-01-04 164953.png
Screenshot 2022-01-04 164953.png (151.02 KiB) Viewed 1041 times

Post by alex.l »

All the best,
Alex


Post by vbureanu »

Hello, Alex
I have tried, but it doesn't work.
Please see 4 screenshots. Have we something missed?

Attachments
image_2022_01_10T08_42_43_490Z-1.png
image_2022_01_10T08_42_43_490Z-1.png (6.81 KiB) Viewed 987 times
image_2022_01_10T08_40_53_127Z-1.png
image_2022_01_10T08_40_53_127Z-1.png (18.97 KiB) Viewed 987 times
image_2022_01_10T08_38_00_973Z-1.png
image_2022_01_10T08_38_00_973Z-1.png (12.84 KiB) Viewed 987 times

Post by vbureanu »

image_2022_01_10T08_36_11_131Z.png
image_2022_01_10T08_36_11_131Z.png (19.07 KiB) Viewed 986 times

How we can get rid on missed properties? 🙂


Post by alex.l »

Ah, my mistake. Please try documented properties:
https://bryntum.com/docs/scheduler-pro/api/SchedulerPro/model/ProjectModel#property-calendarManagerStore
https://bryntum.com/docs/scheduler-pro/api/SchedulerPro/model/ProjectModel#property-calendar
So it should be schedulerComponent.instance.project.calendarMangerStore and schedulerComponent.instance.project.calendar.

All the best,
Alex


Post by vbureanu »

alex.l wrote: Mon Jan 10, 2022 12:36 pm

So it should be schedulerComponent.instance.project.calendarMangerStore and schedulerComponent.instance.project.calendar.

Unfortunately we have no any word starting with "calendar" after the "project."...
We have Angular schedulerPro, but we see no any connection to calendar...

Screenshot 2022-01-10 174721.png
Screenshot 2022-01-10 174721.png (213.79 KiB) Viewed 966 times

Can you please share to me some real Angular project with simple implementation of calendar intervals?

Thanks a lot


Post by alex.l »

Thank you for clarifications! I see the problem in TypeScript. Here is a ticket to fix that: https://github.com/bryntum/support/issues/3996

As a temp fix, please add //@ts-ignore above the line of the code.

        //@ts-ignore
        schedulerComponent.instance.project.calendar = ...

All the best,
Alex


Post by vbureanu »

Hello Alex, even with //@ts-ignore it does not work, because the "calendar" does not exist inside of library.
As I understand the only solution - is to wait the 4.3.7 version?

Sincerely,
Vitalie


Post by alex.l »

Could you please try again since I do have it.
Make sure your data is loaded when you check that. Otherwise the calendar won't be set yet. I tested with our Angular resource-histogram example for the SchedulerPro.

All the best,
Alex


Post by vbureanu »

Hello Alex,

Thank you for example!
We have installed the Angular resource-histogram example for the SchedulerPro and in fact in works, but we have some issue, which we don`t uderstand.

If we use resource-histogram project example "as is" - calendars works. But if we try to load data piece by piece (by separating and declaring it as constant), it does not work.
Our scope is to load data not as one complete JSON, but by different parts (events apart, resources apart, etc.).
But when we try to do that - we see that calendar periods dont work anymore.

I have attached the "Angular resource-histogram example" changed by us (by separating data in different parts) and some screenshots. Can you please help us to understand why the separed data does not work as expected?

Many thanks,
Vitalie

resource-histogram.zip
(2.45 MiB) Downloaded 49 times

Post Reply