Custom feedback types #51
-
First of all, how can i customize the feedback type?
and how can i send the form without backend endpoint? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hey @justoverclockl,
There is currently no way to customize the feedback types, they are hard coded. This should be a simple fix though, if you want you can create a PR for this!
What do you mean by this? Where do you want to send the form? |
Beta Was this translation helpful? Give feedback.
-
Added in v2.0.0 🎉 Use the import Feedback from '@betahuhn/feedback-js'
const options = {
endpoint: 'https://example.com/feedback',
types: {
general: {
text: 'General Feedback',
icon: '⚠️'
},
idea: {
text: 'I have an idea',
icon: '💡'
},
love: {
text: 'Send love',
icon: '💖'
}
}
}
new Feedback(options).renderButton() |
Beta Was this translation helpful? Give feedback.
Added in v2.0.0 🎉
Use the
types
option like this: