@uni/tab-bar
v1.0.0
Published
Readme
showTabBar
show tabBar 。
Support
Install
$ npm install @uni/tab-bar --saveor
$ npm install @uni/apis --saveUsage
import { showTabBar } from '@uni/tab-bar';
showTabBar();You can also import from the big package:
import { tabBar } from '@uni/apis';
tabBar.showTabBar();Method
showTabBar()
Arguments
| Property | Type | Description | required | Default | Supported |
| --- | --- | --- | --- | --- | --- |
| options | object | | ✔️ | - | - |
| options.animation | boolean | whether need animation | ✘ | false | |
| options.success | Function | The callback function for a successful API call | ✘ | - | |
| options.fail | Function | The callback function for a failed API call | ✘ | - | |
| options.complete | Function | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - | |
hideTabBar
hide tabBar 。
Support
Install
$ npm install @uni/tab-bar --saveor
$ npm install @uni/apis --saveUsage
import { hideTabBar } from '@uni/tab-bar';
hideTabBar();You can also import from the big package:
import { tabBar } from '@uni/apis';
tabBar.hideTabBar();Method
hideTabBar()
Arguments
| Property | Type | Description | required | Default | Supported |
| --- | --- | --- | --- | --- | --- |
| options | object | | ✔️ | - | - |
| options.animation | boolean | whether need animation | ✘ | false | |
| options.success | Function | The callback function for a successful API call | ✘ | - | |
| options.fail | Function | The callback function for a failed API call | ✘ | - | |
| options.complete | Function | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - | |
