OnClickPipeline
This example explains a way to create a pipeline that will trigger whenever the user click on a React component.
A typical use-case will be to make a custom action in the React project.
The component shown below has been added in version 1.6.0 (OnClickPipeline)
#
Basic implementationTo implement a pipeline that will trigger onClick
-
we will utilize the TriggerPipelineOnClick
trigger component.
It will trigger the pipeline whenever the immediate child component is clicked.
important
When using the TriggerPipelineOnClick
pipeline trigger component,
it is important to only pass children to it that implements an onClick
prop.
Example of a common implementation:
It can be used like this: