BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//Sidebar created event
function onCreated() {
var defaultSidebarOBJ = document.getElementById('default-sidebar').ej2_instances[0];
//Set mediaQuery property to 900px(When window size is below 900px sidebar automatically closes)
defaultSidebarOBJ.mediaQuery = window.matchMedia('(min-width: 900px)');
}
window.addEventListener("resize", function () {
if (window.innerWidth < 900) {
//When resolution is below mediaQuery resolution enable showBackDrop and set type to “Over”
defaultSidebarOBJ.showBackdrop = true;
defaultSidebarOBJ.type = "Over";
.
.
.
} else {
//When resolution is below mediaQuery resolution enable showBackDrop and set type to “Over”
defaultSidebarOBJ.showBackdrop = false;
defaultSidebarOBJ.type = "Push";
.
.
.
}
}); |