本文整理匯總了TypeScript中ionic-angular.Config.setTransition方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Config.setTransition方法的具體用法?TypeScript Config.setTransition怎麽用?TypeScript Config.setTransition使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-angular.Config
的用法示例。
在下文中一共展示了Config.setTransition方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor(private app: App, component: ImageViewerComponent, opts: ImageViewerOptions = {}, config: Config) {
super(component, opts);
config.setTransition('image-viewer-enter', ImageViewerEnter);
config.setTransition('image-viewer-leave', ImageViewerLeave);
this.didLeave.subscribe(() => opts.onCloseCallback && opts.onCloseCallback());
this.willEnter.subscribe(() => this.handleHighResImageLoad(opts.fullResImage));
}
示例2: constructor
constructor(public config: Config) {
this.config.setTransition('slide-transition', SlideTransition);
}
示例3: constructor
constructor(private _app: App, private _config: Config) {
_config.setTransition('dropdown-open', DropdownOpen);
_config.setTransition('dropdown-close', DropdownClose);
}
示例4: constructor
constructor(public config: Config) {
this.config.setTransition('custom-modal-enter', CustomModalEnterTransition);
this.config.setTransition('custom-modal-leave', CustomModalLeaveTransition);
}