LearnNewsExamplesServices
Frontmatter
id8061
titleMap AddFileDialog Save button to ViewportController
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 8, 2025, 1:40 PM
updatedAtDec 8, 2025, 2:07 PM
githubUrlhttps://github.com/neomjs/neo/issues/8061
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 8, 2025, 2:07 PM

Map AddFileDialog Save button to ViewportController

Closed v11.17.0 enhancementai
tobiu
tobiu commented on Dec 8, 2025, 1:40 PM

Enable the "Save" button in AddFileDialog to trigger a method in ViewportController.

  1. Update AddFileDialog.mjs:

    • Add reference: 'filename' to the TextField for easy value access.
    • Add handler: 'onAddFileDialogSave' to the "Save" button.
  2. Update ViewportController.mjs:

    • In onNewFileButtonClick, pass parentComponent: me.component when creating the dialog. This establishes a logical parent-child relationship without mounting the dialog in the Viewport's DOM, enabling the event handler to bubble up to the ViewportController.
    • Implement the onAddFileDialogSave(data) method to handle the event.
tobiu added the enhancement label on Dec 8, 2025, 1:40 PM
tobiu added the ai label on Dec 8, 2025, 1:40 PM
tobiu assigned to @tobiu on Dec 8, 2025, 1:56 PM
tobiu referenced in commit c414b58 - "Map AddFileDialog Save button to ViewportController #8061" on Dec 8, 2025, 1:56 PM
tobiu closed this issue on Dec 8, 2025, 2:07 PM