Reputation: 23
I want to popup an edit box or another modal when I click a button. I can type something in this box and when I close it, I will receive the data I've just typed. How can I do?
Upvotes: 0
Views: 174
Reputation: 11311
Most obvious way would be to create a dialog box with one edit control and OK and Cancel buttons (you would probably want to alow user to cancel).
Then you provide a method in that dialog to access typed-in value after it was closed.
Upvotes: 2