Our state of the art Gantt chart
The default theme is Stockholm. When I change from Stockholm to classic dark, the bryntum theme is changed, but I got the attached error.
Attachments
Themes.jpg (141.1 KiB) Viewed 537 times
Can you reproduce this in our online samples? What version are you using?
Your app is using the theme
property of the theme change event as an id to look up a widget in your app. Check that.
Something like this:
Screenshot 2023-03-23 at 15.33.56.png (484.51 KiB) Viewed 528 times
We did the proposed solution and we are getting the attached error above.
Can you please upload a test case here so we can reproduce and debug the issue?
Hi,
I just made small demo to reproduce the issue. please check attachment file.
Steps: Change theme from stockholm to any other theme will get the issue like picture error.png
error.PNG (81.03 KiB) Viewed 483 times
Note: Because our script not put in head tag. To make set theme work I had a bit change on setTheme method of DomHelper.js as picture DomHelper.png
DomHelper.PNG (62.24 KiB) Viewed 483 times
Example:
Please help me how to fix this bug and clear some warning '$name static property or getter required for class Task to provide class name for minified sources.'
Try to set a breakpoint and see what the error is, it looks like an issue in your code. You can ignore the warning, we will mute it in a future release.
Hi Mats,
I already sent an example code. in the first post, I also attach image for error.
Error because
WidgetHelper.getById(themeChangeEvent.theme) = undefined
error_theme2.PNG (29.08 KiB) Viewed 454 times
Check what is in your tbar at that point. There should be a button group with the theme buttons, and they should have the ids you assigned.
Screenshot 2023-03-30 at 08.52.08.png (59.09 KiB) Viewed 440 times
Screenshot 2023-03-30 at 08.54.17.png (251.64 KiB) Viewed 440 times