Model Dialog Runtime Resize / Round Corner / Title Color / Hide X on Dialog / hide Title Bar
Resize Model Dialog at run time
Region --> Appearance --> CSS Classes
js-dialog-size1200x600
Round Corner
Execute when Page Loads
apex.util.getTopApex().jQuery(".ui-dialog").css({"border-radius": "8px 8px 8px 8px", "border-width": "1px"});
apex.util.getTopApex().jQuery(".ui-corner-all").css({"border-radius": "8px 8px 8px 8px", "border-width": "1px"});
apex.util.getTopApex().jQuery(".t-DialogRegion").css({"border-radius": "8px 8px 8px 8px", "border-width": "1px"});
OR
$(".ui-dialog").css({"border-radius": "8px 8px", "border-width": "0px"});
$(".ui-corner-all").css({"border-radius": "8px 8px 8px 8px", "border-width": "0px"});
$(".t-DialogRegion").css({"border-radius": "8px 8px 8px 8px", "border-width": "0px"});
$(".ui-dialog-titlebar").css({"background-color": "#309FDB", "color": "#fff"});
To handle Tile of Model then Create inline CSS,
Css Inline
#ui-id-1{
text-align:center;
font-size: 20px;
color: #fff;
}
if you have button on Model dialog at end and assigned backgroup
.t-DialogRegion-buttons{
border-radius:8px;
background-color:blue;
}
Hide Title
Execute when Page Loads
$(".ui-dialog-titlebar").hide() ;
or
var title = parent.$(".ui-dialog-titlebar");
title.hide(); //hide the button
or CSS inline
.noTitleStuff .ui-dialog-titlebar {display:none}
.ui-dialog-titlebar {
display: none;
}
Hide the x on the modal dialog
var button = parent.$('.ui-dialog-titlebar-close'); //get the button
button.hide(); //hide the button
Useful Link
https://forum.jquery.com/topic/ui-dialog-remove-title-bar
.ui-dialog .ui-dialog-titlebar {
padding: .4em 1em;
position: relative;
-moz-border-radius-bottomleft: 0px/*{cornerRadius}*/;
-webkit-border-bottom-left-radius: 0px/*{cornerRadius}*/;
-khtml-border-bottom-left-radius: 0px/*{cornerRadius}*/;
border-bottom-left-radius: 0px/*{cornerRadius}*/;
-moz-border-radius-bottomright: 0px/*{cornerRadius}*/;
-webkit-border-bottom-right-radius: 0px/*{cornerRadius}*/;
-khtml-border-bottom-right-radius: 0px/*{cornerRadius}*/;
border-bottom-right-radius: 0px/*{cornerRadius}*/;
}
thanks for helping me in oracle apex development do you have any youtube channel?
ReplyDeleteand subscribe my channel and learn oracle apex css html and java js and many more sql plsql
ReplyDeletenajeeb Alikhel and learn apex