We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f1528 commit 43f516eCopy full SHA for 43f516e
src/types.ts
@@ -1264,6 +1264,26 @@ export interface RuntimeParameter {
1264
* console.log('Drilldown event', drilldown);
1265
* }));
1266
* ```
1267
+ *
1268
+ * If using React components to embed, use `on<EventName>` to register event listeners.
1269
1270
+ * @example
1271
+ * ```js
1272
+ * // ...
1273
+ * const MyComponent = ({ dataSources }) => {
1274
+ * const onLoad = () => {
1275
+ * console.log(EmbedEvent.Load, {});
1276
+ * };
1277
1278
+ * return (
1279
+ * <SearchEmbed
1280
+ * dataSources={dataSources}
1281
+ * onLoad = {logEvent("Load")}
1282
+ * />
1283
+ * );
1284
1285
+ * ```
1286
1287
* @group Events
1288
*/
1289
// eslint-disable-next-line no-shadow
0 commit comments