Adding Custom Event Handlers to Module React Components

Don't worry about this.

  1. In your ComponentDescriptor, set the events that you would like to trigger. This is also what makes the events appear in the designer.
    There are some other threads on the forum about what should be in the event's *.props.json file.
  2. In your client component, fire the events using props.componentEvents.fireComponentEvent(eventName, eventObject). The corresponding event will be triggered on the gateway when it's received.
2 Likes