Skip to main content
Level 3
Dec 15, 2016 12:03 PM UTC
Solved

Touch UI - cq.auhoring.dialog

Hi 

I have component specific client libs and I have given the categories cq.authoring.dialog. I have written few methods in js . But the same are getting applied for all dialogs present on the page. 

But that should be applied only for that particular dialog. Could you please let me know how to achieve. Please provide one example.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Dec 20, 2016 10:24 AM UTC
see below snippet 
 
cq: dialog: {
jcr: primaryType: "nt:unstructured",
jcr: title: "Page",
extraClientlibs: ["category1","category2"],
mode: "edit",
sling: resourceType: "cq/gui/components/authoring/dialog"
}

Documentation:- https://docs.adobe.com/docs/en/aem/6-2/develop/components/components-touch-optimized.html

~kautuk

Kautuk Sahni

8 replies

smacdonald2008
Level 10
Dec 15, 2016 8:39 PM UTC

cq.authoring.dialog is a global category and applies to all Touch UI dialogs. 

Translate
Level 3
Dec 16, 2016 2:56 AM UTC
        Ok. But please let me know is there any way to make it component specific. Please explain me how to use extraclientlibs also
Translate
Level 2
Dec 20, 2016 2:01 AM UTC

The below link explains a good example on how to write js for events, such as a validator. It explains the concept of the extraClientLib

https://docs.adobe.com/ddc/en/gems/customizing-dialog-fields-in-touch-ui.html

Translate
Level 3
Dec 20, 2016 7:05 AM UTC

I have gone through the adobe document and the link mentioned here. But I was not able to understand the property value to be given for extraClientLibs and how to use it. Please give me an example.

Like extraClientlibs value to be given is ---- 

and where to use it and how to use it.

 

Thank you

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Dec 20, 2016 10:24 AM UTC
see below snippet 
 
cq: dialog: {
jcr: primaryType: "nt:unstructured",
jcr: title: "Page",
extraClientlibs: ["category1","category2"],
mode: "edit",
sling: resourceType: "cq/gui/components/authoring/dialog"
}

Documentation:- https://docs.adobe.com/docs/en/aem/6-2/develop/components/components-touch-optimized.html

~kautuk

Translate
Kautuk Sahni
Oct 12, 2023 2:44 PM UTC

Hi kautuk, could you help me where I can configure the Touch UI?thank you so much for sharing.

Translate
Uma_Nath_Jha
Level 2
Apr 11, 2017 11:13 AM UTC

kautuksahni wrote...

see below snippet 
 
cq: dialog: {
jcr: primaryType: "nt:unstructured",
jcr: title: "Page",
extraClientlibs: ["category1","category2"],
mode: "edit",
sling: resourceType: "cq/gui/components/authoring/dialog"
}

Documentation:- https://docs.adobe.com/docs/en/aem/6-2/develop/components/components-touch-optimized.html

~kautuk

 

It worked for me.

Thanks

Translate
teufeld
Level 2
Jul 17, 2017 1:45 PM UTC

Hi,

In fact I spent some time trying to make the property "extraClientLibs" work. Just to realized that in Adobe documentation they made a mistake, because they wrote the property "extraClientLibs" instead of "extraClientlibs".

Translate