Fórumok

Hiding the titlebar or header of AUI dialog

Mahmud Hossain, módosítva 11 év-val korábban

Hiding the titlebar or header of AUI dialog

New Member Bejegyzések: 18 Csatlakozás dátuma: 2012.05.28. Legújabb bejegyzések
How can I hide the titlebar of a AUI Dialog? For example, I know how to remove the close icon from the titlebar by setting close:false. But how can I get rid of the titlebar from the Dialog itself. Thanks.
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Hiding the titlebar or header of AUI dialog

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Are you using this AUI dialog and setting addHeader to add a header?
https://developer.atlassian.com/display/AUI/Dialog
Mahmud Hossain, módosítva 11 év-val korábban

RE: Hiding the titlebar or header of AUI dialog

New Member Bejegyzések: 18 Csatlakozás dátuma: 2012.05.28. Legújabb bejegyzések
This is how I'm showing the window. I want to hide the header/titlebar.

var currentURL=(document.URL.toString()).split("?");
for ( var j = 0; j < currentURL.length; j++){
var value = currentURL[j].split("=");
if (value[0] == "firstlogin" &&value[1]=="true") {
AUI().ready('aui-dialog','liferay-portlet-url', function(A) {
var url = new Liferay.PortletURL();
url.setPortletId("FirstLoginExp_WAR_FirstLoginExpportlet");
url.setWindowState('pop_up');
var urll = url.toString().replace("home","firstlogin");
window.myDialog = new A.Dialog(
{ title: 'First Login Form',
destroyOnClose: true,
width: 670,
modal:true
} ).plug(
A.Plugin.IO, {
uri: urll
}
).render();

});

}//end if
}//end for
Alan L., módosítva 11 év-val korábban

RE: Hiding the titlebar or header of AUI dialog

New Member Bejegyzések: 8 Csatlakozás dátuma: 2012.08.28. Legújabb bejegyzések
Hi Mahmud,

If it's not possible using any attribute, I think you could do something like:

var header = A.one(...) <-- to select the header
header.hide()

or any other way using: header.setStyle('display', 'none') or something like that.