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