isShowCloseButton

The isShowCloseButton function is used to specify whether to display the close button on the title bar.

Note: This function is only effective for H5 mini program and is not for DSL and H5+ mini program.

Method signature

Parameters

Parameter

Data Type

Required

Description

showCloseButton

Boolean

Yes

Controls whether to show the close button on title bar.

Valid values:

  • true: shows the close button.
  • false: hides the close button. (Default)

If this parameter is not specified, the close button is hidden by default.

Sample

User experience

Value

Screenshot

true

image.png

false

image.png