Expand my Community achievements bar.

SOLVED

Defining method for cq:listeners

Avatar

Level 4

Hi, 

Could any one please suggest how to define our methods for cq:listeners.(afteredit, afterdelete... for these methods).

1 Accepted Solution

Avatar

Correct answer by
Level 10
  • Define an javascript method in your  client library
  • make sure the library is included in your page
  • call the method in cq:listener
  • There are lot of example oob. On of them at /libs/cq/flow/components/step/start/cq:editConfig/cq:listeners

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10
  • Define an javascript method in your  client library
  • make sure the library is included in your page
  • call the method in cq:listener
  • There are lot of example oob. On of them at /libs/cq/flow/components/step/start/cq:editConfig/cq:listeners