-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I pass data to my dialog? #44
Comments
Through the |
Are you suggesting that I add a property in the passed options (with name that's not being used by system property of the commponent) and then I will be able to read that within my custom component? Are |
Yes. |
How do we use passed property value in 'message' property? Like 'Do you want o delete x named item?' |
This gives a syntax error. |
@serkandemirel0420 You can try compose your message completely before passing it to the dialog like this:
We're only replacing placeholders in strings that are built in. For message, you have to compose the message yourself. Your code should look similar to this:
|
Thank you @symonsoft That solution should work. @nicroto did it work for you? |
@Godofbrowser That indeed worked. Thanks! |
For a more graphic explanation, you can pass data to your custom vuejs dialog component via the this.$dialog.confirm('What do you want to modify in this workflow?', {
view: 'workflow-editor',
html: true,
animation: 'fade',
backdropClose: true,
metadata: 'The quick brown fox jumps over the lazy dog.'
}) The |
I am creating custom components for my dialogs.
How do I pass data (parameters/context/etc.) to my dialog?
The text was updated successfully, but these errors were encountered: