Frontmatter
| id | 8235 |
| title | [Neural Link] Implement toJSON in layout.Card |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 31, 2025, 4:22 PM |
| updatedAt | Dec 31, 2025, 4:39 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8235 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 31, 2025, 4:23 PM |
[Neural Link] Implement toJSON in layout.Card
tobiu added parent issue #8200 on Dec 31, 2025, 4:22 PM

tobiu
Dec 31, 2025, 4:23 PM
Input from Gemini:
✦ I have implemented the
toJSONmethod insrc/layout/Card.mjs. It returns:{ ...super.toJSON(), activeIndex : this.activeIndex, containerCls : this.containerCls, removeInactiveCards: this.removeInactiveCards, slideDirection : this.slideDirection }
tobiu closed this issue on Dec 31, 2025, 4:23 PM
tobiu assigned to @tobiu on Dec 31, 2025, 4:39 PM
Implement the
toJSONmethod insrc/layout/Card.mjsto support the Neural Link serialization protocol.It should return an object containing:
super.toJSON()activeIndex: The currently active card indexcontainerCls: The container CSS class (e.g., 'neo-layout-card')removeInactiveCards: Whether inactive cards are removed from DOMslideDirection: The direction of the slide animation