Fórum

Hiding the titlebar or header of AUI dialog

Mahmud Hossain, modificado 11 Anos atrás.

Hiding the titlebar or header of AUI dialog

New Member Postagens: 18 Data de Entrada: 28/05/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Hiding the titlebar or header of AUI dialog

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Are you using this AUI dialog and setting addHeader to add a header?
https://developer.atlassian.com/display/AUI/Dialog
Mahmud Hossain, modificado 11 Anos atrás.

RE: Hiding the titlebar or header of AUI dialog

New Member Postagens: 18 Data de Entrada: 28/05/12 Postagens Recentes
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., modificado 11 Anos atrás.

RE: Hiding the titlebar or header of AUI dialog

New Member Postagens: 8 Data de Entrada: 28/08/12 Postagens Recentes
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.