Class: FeedbackButton

FeedbackButton

new FeedbackButton()

This is a UI class showing a feedback button which allows end users of your web site/app to receive error reports and / or feature requests.

Feedback button

To enable this button use the RC.Logger#showFeedbackButton config option of the logger class.

Members

backgroundColorString

Background color for the form.

bugTextString

The text label for the bug checkbox

buttonColorString

The background color for buttons and highlight/hover color for the feedback button.

buttonHoverColorString

The background color when hovering form buttons.

buttonTextColorString

The button text color for the form buttons.

cancelButtonTextString

The cancel button text

featureRequestTextString

The text label for the feature request checkbox

feedbackButtonColorString

Background color for the feedback button.

feedbackButtonTextColorString

Text color for the feedback button.

foregroundColorString

The color used as background in text fields.

highlightColorString

The color used when highlighting a part of the page for the screenshot.

infoTextString

The help text shown above the submit button

messageFieldPlaceholderString

The placeholder text for the message field

nameFieldPlaceholderString

The placeholder text for the name field

sideString

The side to show the button (left/right)

submitButtonTextString

The submit button text

textString

The button text to show in the collapsed state

textColorString

Text color used on button and in form.

Methods

destroy()

Destroys the feedback button and removes it from the DOM completely

hideForm()

Collapses the feedback form

showForm()

Expands the feedback form