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
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtFeb 6, 2026, 2:33 AM

Implement cellCls config for Grid Columns

Closed v12.0.0/archive-v12-0-0-chunk-1 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
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.