which listener should be used to listen xtype 'tags' ? | Community
Skip to main content
amangoyal15
Level 3
October 25, 2016
Solved

which listener should be used to listen xtype 'tags' ?

  • October 25, 2016
  • 1 reply
  • 675 views

I have mapped my tags to some value . Now i want to get those values with the help of listener. which listener should be used to listen xtype 'tags' ? 

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 smacdonald2008

To listen to tags when they are selected from a component dialog - you want to use  CQ.tagging.TagInputField.

You can code xtype listeners using the APIs documented here: 

https://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html

For example - search for the class: Class CQ.tagging.TagInputField

Each data type has its own event handlers: 

Then you code in a custom xtype (a JS file) where you can code against a given event handler. 

See this article as an example: 

https://helpx.adobe.com/experience-manager/using/dynamically-updating-aem-custom-xtype.html

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 25, 2016

To listen to tags when they are selected from a component dialog - you want to use  CQ.tagging.TagInputField.

You can code xtype listeners using the APIs documented here: 

https://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html

For example - search for the class: Class CQ.tagging.TagInputField

Each data type has its own event handlers: 

Then you code in a custom xtype (a JS file) where you can code against a given event handler. 

See this article as an example: 

https://helpx.adobe.com/experience-manager/using/dynamically-updating-aem-custom-xtype.html