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 cq-selector attribute to a selector for the other component. Set cq-method to the method to run on that component. The parameter to the method will be an object that contains the context for this clickable (if available) and a reference to this button ("caller").

Since:
  • 3.0.9

Example

<cq-clickable cq-selector="cq-sample-dialog" cq-method="open">Settings</span></cq-clickable>
runs
$("cq-sample-dialog")[0].open({context: this.context, caller: this});