tomas / dialog

Show native alert dialogs on Windows, OSX and Linux with Node.js.
57 stars 16 forks source link

Support question dialog type #6

Open charlielee opened 8 years ago

charlielee commented 8 years ago

This would allow users to respond "yes" or "no" to a dialog with a new method dialog.confirm. My initial thoughts on implementing this in a cross platform manner are:

https://msdn.microsoft.com/en-us/library/139z2azd(v=vs.90).aspx https://help.gnome.org/users/zenity/stable/question.html.en https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW12

tomas commented 8 years ago

Sounds good!

tomas commented 7 years ago

@BoatsAreRockable interested in submitting a PR for this?

charlielee commented 7 years ago

I'm pretty busy for the next couple of weeks but I hope to over the Christmas break! 😃

homakov commented 7 years ago

Is there any way to ask the user yes/no confirm style yet? would be awesome

bat-tomr commented 6 years ago

I have used Tomas' dialog for a while for a desktop app that runs on windows, linux and OSX. Recently I ran into the situation that I needed also the user's input (like text, date, Ok/Cancel,...), so I created dialog-node which takes Tomas' concept and extends it to dialogs that query user input: https://www.npmjs.com/package/dialog-node Feedback (positive or negative) highly appreciated

tomas commented 6 years ago

Would anyone care to try #11 and see if it solves the issue for everyone?