Namespace: cq-clickable

WebComponents. cq-clickable

Clickable web component <cq-clickable>.

When tapped/clicked, this component can run a method on any other component. Set the cq-selector attribute to a selector for the other component. Set cq-method to the method to run on that component. The parameter provided to the method is an object that contains the context (if available) for this clickable component ("context") and a reference to the component ("caller").

For example:

<cq-clickable cq-selector="cq-sample-dialog" cq-method="open">Settings</cq-clickable>


document.querySelector("cq-sample-dialog").open({context: this.context, caller: this});
  • 3.0.9



Runs a method on the clickable component.