components
components copied to clipboard
Create the component dialog
Component: dialog
Inspiration in: https://onsen.io/v2/docs/css.html#dialog-category
<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!-->
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.