Open luin opened 8 years ago
@luin This could totally work with the HTML5 <dialog>
element proposal I made in #8 / #34.
Here's a working JSFiddle with the small customization needed: jsfiddle.net/developit/636kfvv5
Preview:
Note that the grey backdrop is optional. It is not used if you call <dialog>.show()
instead of <dialog>.showModal()
.
In OS X, the modal dialog shows below the title bar:
![image](https://cloud.githubusercontent.com/assets/635902/10562854/62596c8c-75a3-11e5-8bc3-0d65d95fe6fe.png)
Electron does a good job that shows alert and confirm dialog (by invoke
alert()
andconfirm()
) following the native style. However when using the custom title bar component of photon, the native dialog will become very strange:I think it would be of great help if photon can offer a dialog component :laughing: