-
-
Notifications
You must be signed in to change notification settings - Fork 202
refactor: Adopt 'internalId' for Stable DOM Keying (Grid & Table) #9072
Copy link
Copy link
Closed
Labels
Description
Context:
Following #9070 (Internal ID implementation) and the List/DataView refactor, the Grid and Table components must also be updated to support stable DOM keying.
Problem:
Grids are the primary UI for CRUD operations. Handling "Phantom Records" (newly added rows before save) is a critical use case where id: null currently causes issues.
Task:
Update Neo.grid.Container and Neo.table.Container (and their respective Views/Rows) to support internalId.
Requirements:
- Opt-in Config: Add
useInternalIdconfig to Grid/Table Container. - Row Rendering: Update row generation to use
store.getInternalId(record)for the<tr>or<div>ID. - Cell Rendering: Ensure cell IDs are derived consistently.
- Selection Model: Update
Neo.selection.grid.ModelandNeo.selection.table.Modelto handle internal ID based lookups.
Scope:
src/grid/(View, Row, Container)src/table/- Selection Models
Reactions are currently unavailable