Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| title | String | No | Text displayed in the navigation bar |
| image | String | No | Image URL (HTTPS only); replaces title when set |
| backgroundColor | String | No | Background color in hex format (e.g., #ffffff) |
| borderBottomColor | String | No | Bottom border color in hex format |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Code Example
Set Title and Background Color
Set Title with Border
Use Image Instead of Title
Notes
Use Cases
Dynamic Title Based on Data
Dynamic Title Based on Data
Theme-Aware Navigation
Theme-Aware Navigation
Related APIs
my.showNavigationBarLoading
Show loading indicator
my.hideBackHome
Hide back to home button