Constructor
new mw.Feedback(configopt)
#
This is a way of getting simple feedback from users. It's useful for testing new features -- users can give you feedback without the difficulty of opening a whole new talk page. For this reason, it also tends to collect a wider range of both positive and negative comments. However you do need to tend to the feedback page. It will get long relatively quickly, and you often get multiple messages reporting the same issue.
It takes the form of thing on your page which, when clicked, opens a small dialog box. Submitting that dialog box appends its contents to a wiki page that you specify, as a new section.
This feature works with any content model that defines a
mw.messagePoster.MessagePoster
.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Configuration object Properties
|
- Source:
Classes
Methods
launch(contentsopt)
#
Modify the display form, and then open it, focusing interface on the subject.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
contents |
Object |
<optional> |
Prefilled contents for the feedback form. Properties
|
- Source:
onDialogSubmit(status, feedbackPageName, feedbackPageUrl)
#
Respond to dialog submit event. If the information was submitted successfully, open a MessageDialog to thank the user.
Parameters:
Name | Type | Description |
---|---|---|
status |
string | A status of the end of operation of the main feedback dialog. Empty if the dialog was dismissed with no action or the user followed the button to the external task reporting site. |
feedbackPageName |
string | |
feedbackPageUrl |
string |
- Source: