Skip to content

feat(NbDialogService): support passing values to input/model signals#3278

Open
junglerobba wants to merge 1 commit intoakveo:masterfrom
junglerobba:dialog-signal-inputs
Open

feat(NbDialogService): support passing values to input/model signals#3278
junglerobba wants to merge 1 commit intoakveo:masterfrom
junglerobba:dialog-signal-inputs

Conversation

@junglerobba
Copy link

This makes an exception for input and model signals in the DialogConfig context, so the typehint will show as the type of the signal's value, but internally it will create a signal with the passed value. Technically these will just be readonly signals instead of input or model signals, but since components used as a dialog do not support regular outputs anyway, it should not matter. When used in a regular context the input signal will not be overwritten and work as usual.

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

closes #3256 (I would not classify this as a bug but a missing feature instead)

@sonarqubecloud
Copy link

@jkneepkens
Copy link
Contributor

Any change this gets merged @denStrigo?

@junglerobba junglerobba force-pushed the dialog-signal-inputs branch from 3209993 to 0bcabdf Compare October 1, 2025 17:58
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2025

@jkneepkens
Copy link
Contributor

Can this one be reviewed and merged please @denStrigo ?

This makes an exception for input and model signals in the DialogConfig
context, so the typehint will show as the type of the signal's value,
but internally it will create a signal with the passed value.
Technically these will just be readonly signals instead of input or model
signals, but since components used as a dialog do not support regular
outputs anyway, it should not matter. When used in a regular context the
input signal will not be overwritten and work as usual.

closes akveo#3256
(I would not classify this as a bug but a missing feature instead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NbDialogService has problem with inputSignal and ModelSignal

2 participants