Adds a cell to the appropriate Sections and registers it metadata for later retrievable.
({cellMetadatum, index}: RegisterCellParams)
| 91 | |
| 92 | /** Adds a cell to the appropriate Sections and registers it metadata for later retrievable. */ |
| 93 | registerCell({cellMetadatum, index}: RegisterCellParams) { |
| 94 | this._cellMetadata[index] = cellMetadatum; |
| 95 | |
| 96 | this.getSections(cellMetadatum).forEach(section => |
| 97 | section.addCellIndex({index}), |
| 98 | ); |
| 99 | } |
| 100 | } |
no test coverage detected