mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
parent
2b94ffdc44
commit
6ccf3a66bb
@ -29,21 +29,35 @@ export interface NativeTransitionOptions {
|
|||||||
*
|
*
|
||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* let options: NativeTransitionOptions = {
|
|
||||||
* direction: 'up',
|
|
||||||
* duration: 500,
|
|
||||||
* slowdownfactor: 3,
|
|
||||||
* slidePixels: 20,
|
|
||||||
* iosdelay: 100,
|
|
||||||
* androiddelay: 150,
|
|
||||||
* winphonedelay: 250,
|
|
||||||
* fixedPixelsTop: 0,
|
|
||||||
* fixedPixelsBottom: 60
|
|
||||||
* };
|
|
||||||
*
|
*
|
||||||
* this.nativePageTransitions.slide(options)
|
* // example of adding a transition when a page/modal closes
|
||||||
* .then(onSuccess)
|
* ionViewWillLeave() {
|
||||||
* .catch(onError);
|
*
|
||||||
|
* let options: NativeTransitionOptions = {
|
||||||
|
* direction: 'up',
|
||||||
|
* duration: 500,
|
||||||
|
* slowdownfactor: 3,
|
||||||
|
* slidePixels: 20,
|
||||||
|
* iosdelay: 100,
|
||||||
|
* androiddelay: 150,
|
||||||
|
* fixedPixelsTop: 0,
|
||||||
|
* fixedPixelsBottom: 60
|
||||||
|
* };
|
||||||
|
*
|
||||||
|
* this.nativePageTransitions.slide(options)
|
||||||
|
* .then(onSuccess)
|
||||||
|
* .catch(onError);
|
||||||
|
*
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* // example of adding a transition when pushing a new page
|
||||||
|
* openPage(page: any) {
|
||||||
|
*
|
||||||
|
* this.nativePageTransitions.slide(options);
|
||||||
|
* this.navCtrl.push(page);
|
||||||
|
*
|
||||||
|
* }
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user