Answer the question
In order to leave comments, you need to log in
How to pass data from the form from the modal window to the one who called this window?
New to Vue. There is a modal window on Vue with 2 dropdowns and "OK" and "Cancel" buttons. Suppose there is a button, when clicked, this window should open, and if OK is selected, then take the values from the dropdowns selected in the window and perform the calculations. If Cancel is pressed, do nothing.
Question: how to organize the transfer of data from the window to the one who called it? I read in the documentation that components can only send events. The OK button is selected -- the accepted event is called, if Cancel, then rejected. How would I do this to get the values from the window if the OK button is pressed? Can use somehow Promise?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question