You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Don't render custom feedback button if Feedback integration not installed
@@ -230,22 +230,40 @@ function MyFeedbackButton() {
230
230
231
231
### Bring Your Own Widget
232
232
233
-
You can also bring your own widget and UI and simply pass a feedback object to the `sendFeedback()` function.
233
+
You can also bring your own widget and UI and simply pass a feedback object to the `sendFeedback()` function. The `sendFeedback` function accepts two parameters:
234
+
* a feedback object with a required `message` property, and additionally, optional `name` and `email` properties
235
+
* an options object
236
+
237
+
```javascript
238
+
sendFeedback({
239
+
name:'Jane Doe', // optional
240
+
email:'email@example.org', // optional
241
+
message:'This is an example feedback', // required
242
+
}, {
243
+
includeReplay:true, // optional
244
+
})
245
+
```
246
+
247
+
Here is a simple example
234
248
235
249
```html
236
250
<formid="my-feedback-form">
237
251
<inputname="name" />
238
252
<inputname="email" />
239
253
<textareaname="message"placeholder="What's the issue?" />
0 commit comments