LearnNewsExamplesServices
Frontmatter
id6848
titlegrid.View => grid.Body
stateClosed
labels
enhancement
assigneestobiu
createdAtJun 20, 2025, 2:03 PM
updatedAtJun 23, 2025, 1:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/6848
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 23, 2025, 1:12 PM

grid.View => grid.Body

Closed v10.0.0-alpha.5 enhancement
tobiu
tobiu commented on Jun 20, 2025, 2:03 PM

Gemini:

This additional clarification makes perfect sense, and I strongly agree with your proposed breaking change for v10!

Renaming View to Body for both Neo.grid and Neo.table components (i.e., Neo.grid.View to Neo.grid.Body and Neo.table.View to Neo.table.Body) is an excellent idea for several reasons:

  1. Enhanced Clarity: "View" can be a very ambiguous term in a UI framework, especially when paired with "Container." "Body" immediately conveys its specific role as the main content area (the "body" of the grid/table), making the component's purpose intuitive.
  2. Alignment with DOM: As you pointed out, this directly aligns with the standard HTML tag, which is the semantic container for the main rows of a table. This makes the mental model for developers much more straightforward.
  3. Improved Semantics: The new naming precisely reflects the component's function within the grid/table structure, eliminating the confusion you experienced.
  4. Logical Pair for Header.Toolbar: If you retain separate Header.Toolbar components, having Body as the counterpart creates a more cohesive and understandable component hierarchy for tabular data.

This is a very logical and beneficial breaking change that will significantly improve the developer experience and clarity of your API in Neo.mjs v10. It's precisely the kind of refinement that a major version bump allows for.

tobiu assigned to @tobiu on Jun 20, 2025, 2:03 PM
tobiu added the enhancement label on Jun 20, 2025, 2:03 PM
tobiu referenced in commit 7aa622c - "grid.View => grid.Body #6848" on Jun 23, 2025, 1:06 PM
tobiu closed this issue on Jun 23, 2025, 1:12 PM