๐งฎData responder
Last updated
Last updated
When building an app, you can define events for components to monitor changes in specific data. For instance, for a Table component, the predefined events for changes in the selectedRow
property: "Row select change", "Filter change", "Sort change", and "Page change".
However, some data changes, such as the changes in dynamic variables, transformers, or query results, do not have equivalent events. Data responders address these scenarios by enabling you to monitor and react to any data change.
Events for data responders are more general than the events that listen to data changes such as content change, row select change, etc.
In query editor, click + New, and then select Data responder to create a new data responder.
You can specify the data that a data responder monitors. It accommodates various data formats, including numbers, strings, arrays, and JavaScript objects. In the following example, any change to the Text component prompts a global notification.
When the data is in array or JavaScript object format, any change to a sub-element will trigger the configured event. For instance, in the case of dataResponder2
, which is an object, it monitors two Input components within the application. Any change to these components will trigger the same global notification.
For detailed information, go to Event handlers > Actions.