LearnNewsExamplesServices
Frontmatter
id8233
title[Neural Link] Implement toJSON in layout.Base
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 31, 2025, 4:14 PM
updatedAtDec 31, 2025, 4:16 PM
githubUrlhttps://github.com/neomjs/neo/issues/8233
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 4:16 PM

[Neural Link] Implement toJSON in layout.Base

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

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

It should return an object containing:

  • Properties from super.toJSON()
  • appName: The app name
  • containerId: The bound container ID
  • containerCls: The container CSS class
  • windowId: The window ID
tobiu added the enhancement label on Dec 31, 2025, 4:14 PM
tobiu added the ai label on Dec 31, 2025, 4:14 PM
tobiu added parent issue #8200 on Dec 31, 2025, 4:14 PM
tobiu assigned to @tobiu on Dec 31, 2025, 4:15 PM
tobiu referenced in commit b8600b2 - "feat(layout): Implement toJSON in Neo.layout.Base for Neural Link serialization (#8233)" on Dec 31, 2025, 4:15 PM
tobiu
tobiu Dec 31, 2025, 4:16 PM

Input from Gemini:

✦ I have implemented the toJSON method in src/layout/Base.mjs. It returns:

{
    ...super.toJSON(),
    appName     : this.appName,
    containerCls: this.containerCls,
    containerId : this.containerId,
    windowId    : this.windowId
}
tobiu closed this issue on Dec 31, 2025, 4:16 PM
tobiu referenced in commit a07f4f2 - "docs(issue): Close ticket #8233" on Dec 31, 2025, 4:19 PM