components icon indicating copy to clipboard operation
components copied to clipboard

Create the component dialog

Open fabiorogeriosj opened this issue 7 years ago • 2 comments

Component: dialog

Inspiration in: https://onsen.io/v2/docs/css.html#dialog-category

fabiorogeriosj avatar May 03 '17 01:05 fabiorogeriosj

<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>jQuery UI Dialog - Default functionality</title>
  <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
window.alert = function(Message, title) {
if (title === undefined) {
 title = "This page says:";
}
    var myElementToShow = document.getElementById("dialog");
    myElementToShow.innerHTML = Message; 
    myElementToShow.setAttribute("title", title);
$( "#dialog" ).dialog();
}
});
  </script>
</head>
<body>
 
<div id="dialog" title=""></div>
<button onClick="window.alert('I am a alert box!');">click me!</button>
</body>
</html>
<!--All Of This Replaces The Default Dialog Box With The jquery Ui Dialog Hope This Helps With The Issue!-->

FluffyKitty776 avatar May 25 '17 20:05 FluffyKitty776

Hi @KitKat-Cat. To have an experience and design closer to the native I think it is better to create using CSS as the example of the issue! Thanks for the sugestion.

fabiorogeriosj avatar May 25 '17 20:05 fabiorogeriosj