Skip to content
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

Is it possible to place hyperlink in the dialog.showMessageBox message string? #7111

Closed
nishant09 opened this issue Sep 6, 2016 · 3 comments

Comments

@nishant09
Copy link

  • Electron version: 0.34
  • Operating system: All

Hi ,

I want to place the html link which will direct the user to the html page when click in my message box dialog's "message" string. Is this possible ?

dialog.showMessageBox(
focusedWindow,
{
type: "error",
message: message,
title: title,
cancelId: cancelId,
buttons: buttons
},
resolve
);

@nishant09
Copy link
Author

I tried below javascript but the dialog seems to be not interpreting the html tag. Hence just write it down as it is.
var productURL = <a href='http://storageexplorer.com/'>StorageExplorer</a>;
var message = "This query was created by a newer version of Storage Explorer. Please update to newer version at:" + productURL;

Output should be: This query was created by a newer version of Storage Explorer. Please update to newer version at: StorageExplorer

@felixrieseberg
Copy link
Member

Sorry to say that this is not supported. I'd recommend building your own dialog - or adding the feature to the current dialog implementation in Electron, a PR is always welcome!

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

No branches or pull requests

3 participants