Your search did not match any results.
Load Panel

Load Panel

Documentation

The LoadPanel is an overlay widget notifying the viewer that loading is in progress.

Copy to CodePen
Apply
Reset
$(function(){ var showLoadPanel = function() { loadPanel.show(); showEmployeeInfo({}); }; var showEmployeeInfo = function(employee) { $(".birth-date").text(employee.Birth_Date || ""); $(".city").text(employee.City || ""); $(".zipcode").text(employee.Zipcode || ""); $(".address-info").text(employee.Address || ""); $(".mobile-phone").text(employee.Mobile_Phone || ""); $(".email").text(employee.Email || ""); }; $(".show-panel").dxButton({ text: "Load Data", onClick: showLoadPanel }); var loadPanel = $(".loadpanel").dxLoadPanel({ shadingColor: "rgba(0,0,0,0.4)", position: { of: "#employee" }, visible: false, showIndicator: true, showPane: true, shading: true, closeOnOutsideClick: false, onShown: function(){ setTimeout(function () { loadPanel.hide(); }, 3000); }, onHidden: function(){ showEmployeeInfo(employee); } }).dxLoadPanel("instance"); $(".with-indicator").dxCheckBox({ value: true, text: "With indicator", onValueChanged: function(e) { loadPanel.option("showIndicator", e.value); } }); $(".with-overlay").dxCheckBox({ value: true, text: "With overlay", onValueChanged: function(e) { loadPanel.option("shading", e.value); } }); $(".with-pane").dxCheckBox({ value: true, text: "With pane", onValueChanged: function(e) { loadPanel.option("showPane", e.value); } }); $(".outside-click").dxCheckBox({ value: false, text: "Close on outside click", onValueChanged: function(e) { loadPanel.option("closeOnOutsideClick", e.value); } }); });
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script>window.jQuery || document.write(decodeURIComponent('%3Cscript src="js/jquery.min.js"%3E%3C/script%3E'))</script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/18.2.6/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/18.2.6/css/dx.light.css" /> <link rel="dx-theme" data-theme="android5.light" href="https://cdn3.devexpress.com/jslib/18.2.6/css/dx.android5.light.css" /> <link rel="dx-theme" data-theme="ios7.default" href="https://cdn3.devexpress.com/jslib/18.2.6/css/dx.ios7.default.css" /> <link rel="dx-theme" data-theme="win10.black" href="https://cdn3.devexpress.com/jslib/18.2.6/css/dx.win10.black.css" /> <link rel="dx-theme" data-theme="win10.white" href="https://cdn3.devexpress.com/jslib/18.2.6/css/dx.win10.white.css" /> <script src="https://cdn3.devexpress.com/jslib/18.2.6/js/dx.all.js"></script> <script src="data.js"></script> <link rel="stylesheet" type ="text/css" href ="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container"> <div id="container"> <h1>John Heart</h1> <div class="show-panel"></div> <div id="employee"> <p> Birth date: <b class="birth-date"></b> </p> <p class="address"> Address:<br /> <b class="city"></b><br /> <span class="zipcode"></span> <span class="address-info"></span> </p> <p> Phone: <b class="mobile-phone"></b><br /> Email: <b class="email"></b> </p> </div> <div class="loadpanel"></div> <div class="options"> <div class="caption">Options</div> <div class="option"> <div class="with-indicator"></div> </div> <div class="option"> <div class="with-overlay"></div> </div> <div class="option"> <div class="with-pane"></div> </div> <div class="option"> <div class="outside-click"></div> </div> </div> </div> </div> </body> </html>
h1 { display: inline-block; vertical-align: middle; padding: 10px; margin: 0; } #employee { margin: 20px 0; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border-top: 1px solid lightgray; border-bottom: 1px solid lightgray; } #employee > p { padding: 10px 20px; margin: 0; } .address { height: 60px; } .options { padding: 20px; background-color: rgba(191, 191, 191, 0.15); margin-top: 20px; } .caption { font-size: 18px; font-weight: 500; } .option { margin-top: 10px; }
var employee = { "Full_Name":"John Heart", "Title":"CEO", "Birth_Date":"03/16/1964", "Prefix":"Mr.", "Address":"351 S Hill St.", "City":"Los Angeles", "Zipcode":90013, "Email":"jheart@dx-email.com", "Skype":"jheart_DX_skype", "Home_Phone":"(213) 555-9208", "Mobile_Phone":"(213) 555-9392" };