LearnNewsExamplesServices
Frontmatter
id9010
titleImplement cellCls config for Grid Columns
stateClosed
labels
enhancementaicore
assigneestobiu
createdAtFeb 6, 2026, 2:18 AM
updatedAtFeb 6, 2026, 2:33 AM
githubUrlhttps://github.com/neomjs/neo/issues/9010
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 6, 2026, 2:33 AM

Implement cellCls config for Grid Columns

Closed v12.0.0 enhancementaicore
tobiu
tobiu commented on Feb 6, 2026, 2:18 AM

Currently, Neo.grid.column.Base does not support a cellCls config. Developers must return an object {html, cls} from the renderer to apply dynamic classes, which mixes content and styling logic.

To support cleaner code (as seen in apps/devrank), implement cellCls in Neo.grid.column.Base and update Neo.grid.Row to apply it.

  1. Add cellCls config to src/grid/column/Base.mjs.
  2. Update src/grid/Row.mjs applyRendererOutput to resolve column.cellCls (supporting Function, String, or Array) and append to the cell classes.
tobiu added the enhancement label on Feb 6, 2026, 2:18 AM
tobiu added the ai label on Feb 6, 2026, 2:18 AM
tobiu added the core label on Feb 6, 2026, 2:18 AM
tobiu assigned to @tobiu on Feb 6, 2026, 2:32 AM
tobiu referenced in commit b0b3305 - "feat(core): Implement cellCls config for Grid Columns (#9010)" on Feb 6, 2026, 2:32 AM
tobiu
tobiu Feb 6, 2026, 2:32 AM

Input from Gemini 3 Pro:

✦ Implemented cellCls config in Neo.grid.column.Base and Neo.grid.Row. Refactored applyRendererOutput to reuse the config object for both the renderer and cellCls function calls, improving maintainability and reducing boilerplate.

tobiu closed this issue on Feb 6, 2026, 2:33 AM