Forums de discussion
AlloyUI Dialog in liferay 6.1
Tom Mahy, modifié il y a 11 années.
AlloyUI Dialog in liferay 6.1
Regular Member Publications: 103 Date d'inscription: 11/05/11 Publications récentes
Hi,
In liferay 6.0.6 i create a dialog in this way :
This works fine. But in liferay 6.1 the text on the buttons doesn't appear.
I went to check the liferay alloyui site. But the doc tells me i'm doing it right.
Does anyone know what im doing wrong here ?
In liferay 6.0.6 i create a dialog in this way :
var dialog_add_link = new A.Dialog({
contentBox: '#idhere',
centered: true,
constrain2view: true,
destroyOnClose: true,
draggable: true,
width: 550,
resizable: false,
stack: true,
close: false,
title: "title",
buttons: [ { text : "save" , handler : function(){
saveLink();
}},
{ text : "cancel" , handler : function(){
window.location.reload();
}}]
}).render();
This works fine. But in liferay 6.1 the text on the buttons doesn't appear.
I went to check the liferay alloyui site. But the doc tells me i'm doing it right.
Does anyone know what im doing wrong here ?
Mayur Patel, modifié il y a 11 années.
RE: AlloyUI Dialog in liferay 6.1 (Réponse)
Expert Publications: 358 Date d'inscription: 17/11/10 Publications récentes
Hey Tom,
I faced same problem today
You need to use label instead of text, Alloy 3.3 has came with new APIs and modification in existing apis.
Refer below for source,
http://deploy.alloyui.com/api
Thanks.
I faced same problem today
You need to use label instead of text, Alloy 3.3 has came with new APIs and modification in existing apis.
buttons: [ { [b]label[/b]: "save" , handler : function(){
saveLink();
}},
{ [b]label[/b]: "cancel" , handler : function(){
window.location.reload();
}}]
}).render();
Refer below for source,
http://deploy.alloyui.com/api
Thanks.
Tom Mahy, modifié il y a 11 années.
RE: AlloyUI Dialog in liferay 6.1
Regular Member Publications: 103 Date d'inscription: 11/05/11 Publications récentes
Thanks. This works fine.
Mahdi Lashkari, modifié il y a 11 années.
RE: AlloyUI Dialog in liferay 6.1
New Member Publications: 7 Date d'inscription: 02/05/12 Publications récentes
I faced this problem too, thanks a lot!!
Mayur Patel, modifié il y a 11 années.
RE: AlloyUI Dialog in liferay 6.1
Expert Publications: 358 Date d'inscription: 17/11/10 Publications récentes
Great to hear this !!! but this is the problem with Alloy-UI not having proper documents, Keeping Outdated API Docs/Posts also creating problem,
Liferay has to come with process to make it more user friendly.
Thanks.
Liferay has to come with process to make it more user friendly.
Thanks.
Abhimanyu Saraswat, modifié il y a 11 années.
RE: AlloyUI Dialog in liferay 6.1
Junior Member Publications: 62 Date d'inscription: 26/02/13 Publications récentes
HI,
I am getting a strange problem can anyone help?
There is a form in the popup I have created which also contains a submit button. When I click on the submit button of this popup it closes. Is there a way out so that the popup does not close after submit.
This is a weird or very simple problem/requirement. Can any one please take out some time to help.
Thanks & Regards
Rahul Saraswat
I am getting a strange problem can anyone help?
There is a form in the popup I have created which also contains a submit button. When I click on the submit button of this popup it closes. Is there a way out so that the popup does not close after submit.
This is a weird or very simple problem/requirement. Can any one please take out some time to help.
Thanks & Regards
Rahul Saraswat