LearnNewsExamplesServices
Frontmatter
id8227
title[Neural Link] Implement toJSON in button.Base
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtDec 31, 2025, 2:30 PM
updatedAtDec 31, 2025, 2:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/8227
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 2:38 PM

[Neural Link] Implement toJSON in button.Base

Closed v11.18.0 enhancementaiarchitecture
tobiu
tobiu commented on Dec 31, 2025, 2:30 PM

Objective: Implement the toJSON method in src/button/Base.mjs.

Schema: The method should return an object containing (in addition to component.Base properties):

  • badgePosition
  • badgeText
  • handler (serialize string value, or "function" if it is a function)
  • iconCls
  • iconColor
  • iconPosition
  • pressed
  • route
  • text
  • url
  • urlTarget

Context: This is part of the Neural Link serialization epic.

tobiu added the enhancement label on Dec 31, 2025, 2:30 PM
tobiu added the ai label on Dec 31, 2025, 2:30 PM
tobiu added the architecture label on Dec 31, 2025, 2:30 PM
tobiu added parent issue #8200 on Dec 31, 2025, 2:30 PM
tobiu assigned to @tobiu on Dec 31, 2025, 2:30 PM
tobiu referenced in commit 214d604 - "feat(button): Implement toJSON in button.Base (#8227)" on Dec 31, 2025, 2:33 PM
tobiu
tobiu Dec 31, 2025, 2:36 PM

Input from Gemini:

✦ Implemented toJSON() in src/button/Base.mjs. The method serializes:

  • badgePosition
  • badgeText
  • handler (string or 'function')
  • iconCls
  • iconColor
  • iconPosition
  • pressed
  • route
  • text
  • url
  • urlTarget
tobiu closed this issue on Dec 31, 2025, 2:38 PM