-
-
Notifications
You must be signed in to change notification settings - Fork 202
Grid Row: Propagate theme changes to cell components #9282
Copy link
Copy link
Closed
Labels
aibugSomething isn't workingSomething isn't workingcoreCore framework functionalityCore framework functionality
Description
When the theme config on a grid changes, Neo.grid.Body properly propagates the new theme to its items (the Neo.grid.Row pool). However, Neo.grid.Row was missing the afterSetTheme hook, meaning any custom components rendered inside the grid cells (e.g. Sparkline widgets) were not notified of the theme change.
Resolution:
- Added
afterSetTheme(value, oldValue)tosrc/grid/Row.mjs. - The method iterates over
this.components(the cached instances of column components) and setscomponent.theme = value, ensuring deep propagation of the theme switch to all cell widgets.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aibugSomething isn't workingSomething isn't workingcoreCore framework functionalityCore framework functionality