# FeedbackButton wx.createFeedbackButton(Object object)

Start from base library version 2.1.2. Please remaining backward compatible.

Creates the button tapped to open the feedback page.

# Parameters

# Object object

Attribute Type Default Required Description
type string Yes The button type
text string No The text on the button. It is valid only when type is text.
image string No The background image of the button. It is valid only when type is image.
style Object Yes The button style

Valid values of type

Value Description Minimum Version
text A button that can be configured with background color and text
image A button that can only be configured with background image. The background image is stretched to fit the button.

style is composed as follows

Attribute Type Default Required Description
left number Yes The x-coordinate of the top-left corner
top number Yes The y-coordinate of the top-left corner
width number Yes Width
height number Yes Height
backgroundColor string Yes Background color
borderColor string Yes The color of the border
borderWidth number Yes The width of the border
borderRadius number Yes The radius of the rounded corner on the border
textAlign string Yes Text alignment method
fontSize number Yes Font size
lineHeight number Yes The line height of the text

Valid values of style.textAlign

Value Description Minimum Version
left Left
center Center
right Right

# Return Values

# FeedbackButton

# Sample Code

let button = wx.createFeedbackButton({
  type: 'text',
  text: 'Open the feedback page',
  style: {
    left: 10,
    top: 76,
    width: 200,
    height: 40,
    lineHeight: 40,
    backgroundColor: '#ff0000',
    color: '#ffffff',
    textAlign: 'center',
    fontSize: 16,
    borderRadius: 4