Is it possible to extend granite ui type/components? | Community
Skip to main content
Level 3
October 30, 2015
Solved

Is it possible to extend granite ui type/components?

  • October 30, 2015
  • 3 replies
  • 1890 views

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? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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-component-dialog.html

//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

3 replies

Level 2
October 30, 2015

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

Level 2
October 30, 2015

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-of-touchui.html

Hope this helps. 

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
November 2, 2015

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-component-dialog.html

//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

Kautuk Sahni