This API is used via wx.setNavigationBarTitle(Object object).
Attribute | Type | Default value | Required | Description |
title | string | - | Yes | Page title |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
wx.setNavigationBarTitle({title: 'Current Page'})
This API is used via wx.setNavigationBarColor(Object object).
Attribute | Type | Default value | Required | Description |
frontColor | string | - | Yes | Foreground color value, including the color of buttons, title, and status bar, only supporting #ffffff and #000000. |
backgroundColor | string | - | Yes | Background color value, with valid values being hexadecimal colors. |
animation | object | - | No | Animation Effect |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Attribute | Type | Default value | Required | Description |
duration | number | 0 | No | Animation transition duration, measured in milliseconds. |
timingFunc | string | 'linear' | No | Animation transition method |
Value | Description |
'linear' | The animation maintains a consistent speed from beginning to end. |
'easeIn' | The animation starts at a slow pace. |
'easeOut' | The animation concludes at a slow pace. |
'easeInOut' | The animation starts and concludes at a slow pace. |
wx.setNavigationBarColor({frontColor: '#ffffff',backgroundColor: '#ff0000',animation: {duration: 400,timingFunc: 'easeIn'}})
This API is used via wx.hideHomeButton(Object object).
Attribute | Type | Default value | Required | Description |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This API is used via wx.showNavigationBarLoading(Object object).
Attribute | Type | Default value | Required | Description |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This API is used via wx.hideNavigationBarLoading(Object object).
Attribute | Type | Default value | Required | Description |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Was this page helpful?