Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Tom Mahy
AlloyUI Dialog in liferay 6.1
August 21, 2012 5:43 AM
Answer

Tom Mahy

Rank: Regular Member

Posts: 103

Join Date: May 11, 2011

Recent Posts

Hi,

In liferay 6.0.6 i create a dialog in this way :

 1var dialog_add_link = new A.Dialog({
 2                contentBox: '#idhere',
 3                centered: true,
 4                constrain2view: true,
 5                destroyOnClose: true,
 6                draggable: true,
 7                width: 550,
 8                resizable: false,
 9                stack: true,
10                close: false,
11                title: "title",
12                buttons: [ { text : "save" , handler : function(){
13                                saveLink();
14                           }},
15                           { text : "cancel" , handler : function(){
16                                   window.location.reload();
17                           }}]
18                }).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
RE: AlloyUI Dialog in liferay 6.1
August 21, 2012 5:51 AM
Answer

Mayur Patel

Rank: Expert

Posts: 341

Join Date: November 17, 2010

Recent Posts

Hey Tom,

I faced same problem today emoticon

You need to use label instead of text, Alloy 3.3 has came with new APIs and modification in existing apis.

1 buttons: [ { [b]label[/b]: "save" , handler : function(){
2                                saveLink();
3                           }},
4                           { [b]label[/b]: "cancel" , handler : function(){
5                                   window.location.reload();
6                           }}]
7}).render();


Refer below for source,
http://deploy.alloyui.com/api

Thanks.
Tom Mahy
RE: AlloyUI Dialog in liferay 6.1
August 21, 2012 5:58 AM
Answer

Tom Mahy

Rank: Regular Member

Posts: 103

Join Date: May 11, 2011

Recent Posts

Thanks. This works fine.
Mahdi Lashkari
RE: AlloyUI Dialog in liferay 6.1
September 29, 2012 1:24 AM
Answer

Mahdi Lashkari

Rank: New Member

Posts: 7

Join Date: May 2, 2012

Recent Posts

I faced this problem too, thanks a lot!!
Mayur Patel
RE: AlloyUI Dialog in liferay 6.1
September 30, 2012 6:51 AM
Answer

Mayur Patel

Rank: Expert

Posts: 341

Join Date: November 17, 2010

Recent Posts

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.
Rahul Saraswat
RE: AlloyUI Dialog in liferay 6.1
February 27, 2013 8:35 AM
Answer

Rahul Saraswat

Rank: Junior Member

Posts: 50

Join Date: February 26, 2013

Recent Posts

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