-
Notifications
You must be signed in to change notification settings - Fork 2
feat(client): Add ThemeManager for grid #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(client): Add ThemeManager for grid #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looks good, just have one question below.
| await widget.content.ready; | ||
| widget.content.style = style; | ||
| widget.content.rendererConfig = rendererConfig; | ||
| updateThemes(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it valid to call updateThemes here even though it is defined after?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If your question is about whether it is valid of calling updateThemes function here, then the answer is yes. This method does not run at the moment the widgetCreated callback is registered. When this callback runs, updateThemes has been defined in memory.
|
Good job, thanks! |
This PR adds ThemeManager. The task is #1
The result:
Screencast from 2025-12-09 13-54-54.webm