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>
runs
document.querySelector("cq-sample-dialog").open({context: this.context, caller: this});
- Since:
-
3.0.9
Methods
-
runMethod()
-
Runs a method on the clickable component.