LearnNewsExamplesServices
Frontmatter
id8235
title[Neural Link] Implement toJSON in layout.Card
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 31, 2025, 4:22 PM
updatedAtDec 31, 2025, 4:39 PM
githubUrlhttps://github.com/neomjs/neo/issues/8235
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 4:23 PM

[Neural Link] Implement toJSON in layout.Card

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 31, 2025, 4:22 PM

Implement the toJSON method in src/layout/Card.mjs to support the Neural Link serialization protocol.

It should return an object containing:

  • Properties from super.toJSON()
  • activeIndex: The currently active card index
  • containerCls: The container CSS class (e.g., 'neo-layout-card')
  • removeInactiveCards: Whether inactive cards are removed from DOM
  • slideDirection: The direction of the slide animation
tobiu added the enhancement label on Dec 31, 2025, 4:22 PM
tobiu added the ai label on Dec 31, 2025, 4:22 PM
tobiu added parent issue #8200 on Dec 31, 2025, 4:22 PM
tobiu referenced in commit d2595a8 - "feat(layout): Implement toJSON in Neo.layout.Card for Neural Link serialization (#8235)" on Dec 31, 2025, 4:22 PM
tobiu
tobiu Dec 31, 2025, 4:23 PM

Input from Gemini:

✦ I have implemented the toJSON method in src/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
tobiu referenced in commit 0bb6d69 - "docs(issue): Close ticket #8235" on Dec 31, 2025, 4:40 PM