This is documentation for all the methods on the send-feedback element.
This is array by default, if you want to attach logs to body (The issue discription provided by user) you can push the file path to this array.
A property if set to true, will remove the default styles. This property can be inherited from
constructor class of this custom element if set to true.
A property that you can set to add custom css.
- default
✔ Feedback sent.
The text of loader when the reporter is successful in doing it's job.
- default
❌ Error sending feedback! try again..
The text of loader when the reporter fails in doing it's job.
- reporter: function or string - This parameter must be a function of one of the default reporter.
- reporterData - could be anything that will be passed to reporter. Default reporter use objects. (This might change in future)
You can pass in custom reporter that will be called with logs, body and title.
logs are formatted as { filepath: fileContent } filepath is whatever was pushed to logs
For customizing elements see customizing send-feedback element, it can be customized by setting attribute or by properties on element.
This will show a loader with text specified in loaderSuccessText.
- error - Show error loader [optional] default is false.
This will show a loader with text specifedi in loaderErrorText.
- error - Show error loader [optional] default is false.
This will clear the title input, and feedback textarea. This is called only when a reporter is successful.
This will only hide loader if needed to be.