Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Is it possible to extend granite ui type/components?

murilod74686477
Level 3
Level 3

I would like to extend the multifield component (/libs/granite/ui/components/foundation/form/multifield) in other to add a maximum items limit.

Do you have any documentation or example about extending these components? 

1 Accepted Solution
kautuk_sahni
Correct answer by
Employee
Employee

Hi murilod74686477 

As mentioned by Scott, you can go through this reference article:-

Link:- http://experience-aem.blogspot.it/2015/07/aem-61-sling-resource-merger-extending-touchui-foundation-...

//This article is on extending Touch UI foundation component cq:dialog to add more input widgets.

 

Another Reference article (less important)

Link:- http://experience-aem.blogspot.it/2015/03/aem-6-sp2-touch-ui-coral-ui-nested-multi-multifield.html

 Link:- http://stackoverflow.com/questions/31042885/how-to-create-a-custom-multifield-for-touch-ui-in-cqaem6

 

I hope this would help you.

 

Thanks and regards

Kautuk Sahni

View solution in original post

0 Replies
Aem-user1
Level 2
Level 2

Yes - you can extend TOuch UI components. I am looking to see if we have some articles on this. 

Aem-user1
Level 2
Level 2

We do not have an article on this exact use case - but our Touch UI expert replied:

You need a validator on the widget something like

http://experience-aem.blogspot.com/2015/08/aem-61-support-required-property-on-richtext-editor-rte-o...

Hope this helps. 

kautuk_sahni
Correct answer by
Employee
Employee

Hi murilod74686477 

As mentioned by Scott, you can go through this reference article:-

Link:- http://experience-aem.blogspot.it/2015/07/aem-61-sling-resource-merger-extending-touchui-foundation-...

//This article is on extending Touch UI foundation component cq:dialog to add more input widgets.

 

Another Reference article (less important)

Link:- http://experience-aem.blogspot.it/2015/03/aem-6-sp2-touch-ui-coral-ui-nested-multi-multifield.html

 Link:- http://stackoverflow.com/questions/31042885/how-to-create-a-custom-multifield-for-touch-ui-in-cqaem6

 

I hope this would help you.

 

Thanks and regards

Kautuk Sahni