Our pure JavaScript Scheduler component


Post by pennyp »

Hi all, I need some guidance. I am trying to implement a custom time-axis on a React Scheduler Pro component. Before Bryntum v5, I was able to modify the generated ticks of the time-axis via just passing the function as a prop

<SchedulerPro
   ...
   timeAxis: {
   	generateTicks: ()=> {/*code*/}
   }
/>

But trying to do this on v5, I understand that by doing this I overwrite the whole time-axis class and some methods of the class needed are not found during the run-time.

As I see in the examples, I have to implement a class that extends the TimeAxis class and register it in the component. The problem is I cannot successfully register it.

Can you help with a working example? I have checked on the documentation examples, but there is none with React.

Thanks in advance.


Post by alex.l »

I just tested it with minimal modification of non-working-time demo, all works great to me.

Please see the demo attached.

Attachments
non-working-time.zip
(2.34 MiB) Downloaded 38 times

All the best,
Alex


Post by pennyp »

Thanks a lot!!!!!! Have a nice day


Post Reply