1.0.0 • Published 4 years ago

@uni/tab-bar v1.0.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
4 years ago

showTabBar

npm

show tabBar 。

Support

Install

$ npm install @uni/tab-bar --save

or

$ npm install @uni/apis --save

Usage

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

PropertyTypeDescriptionrequiredDefaultSupported
optionsobject ✔️--
options.animationboolean whether need animationfalse
options.successFunction The callback function for a successful API call-
options.failFunction The callback function for a failed API call-
options.completeFunction The callback function used when the API call completed (always executed whether the call succeeds or fails)-

hideTabBar

npm

hide tabBar 。

Support

Install

$ npm install @uni/tab-bar --save

or

$ npm install @uni/apis --save

Usage

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

PropertyTypeDescriptionrequiredDefaultSupported
optionsobject ✔️--
options.animationboolean whether need animationfalse
options.successFunction The callback function for a successful API call-
options.failFunction The callback function for a failed API call-
options.completeFunction The callback function used when the API call completed (always executed whether the call succeeds or fails)-