掲示板

Hiding the titlebar or header of AUI dialog

11年前 に Mahmud Hossain によって更新されました。

Hiding the titlebar or header of AUI dialog

New Member 投稿: 18 参加年月日: 12/05/28 最新の投稿
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
11年前 に Hitoshi Ozawa によって更新されました。

RE: Hiding the titlebar or header of AUI dialog

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Are you using this AUI dialog and setting addHeader to add a header?
https://developer.atlassian.com/display/AUI/Dialog
11年前 に Mahmud Hossain によって更新されました。

RE: Hiding the titlebar or header of AUI dialog

New Member 投稿: 18 参加年月日: 12/05/28 最新の投稿
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
11年前 に Alan L. によって更新されました。

RE: Hiding the titlebar or header of AUI dialog

New Member 投稿: 8 参加年月日: 12/08/28 最新の投稿
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.