Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| animation | Boolean | No | Whether to animate the hiding. Default: false |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Code Example
Basic Usage
With Animation
With Callbacks
Use Cases
Fullscreen Content
Fullscreen Content
Hide the tab bar when displaying fullscreen content like videos or images.
Conditional Display
Conditional Display
Hide tab bar based on user role or state.
Related APIs
my.setTabBarStyle
Customize tab bar style
my.switchTab
Navigate to a tab page