Skip to content

Grid Row: Propagate theme changes to cell components #9282

@tobiu

Description

@tobiu

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) to src/grid/Row.mjs.
  • The method iterates over this.components (the cached instances of column components) and sets component.theme = value, ensuring deep propagation of the theme switch to all cell widgets.

Metadata

Metadata

Assignees

Labels

aibugSomething isn't workingcoreCore framework functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions