mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
27 lines
889 B
TypeScript
27 lines
889 B
TypeScript
import {ComponentConfig} from 'ionic/config/component'
|
|
import {Aside} from 'ionic/components/aside/aside';
|
|
import * as asideTypes from 'ionic/components/aside/extensions/types'
|
|
import * as asideGestures from 'ionic/components/aside/extensions/gestures';
|
|
|
|
export let AsideConfig = new ComponentConfig(Aside)
|
|
|
|
AsideConfig.classes('side', 'type')
|
|
|
|
AsideConfig.delegate('gesture')
|
|
.when({side: 'left'}, gestures.LeftAsideGesture)
|
|
.when({side: 'right'}, gestures.RightAsideGesture)
|
|
.when({side: 'top'}, gestures.TopAsideGesture)
|
|
.when({side: 'bottom'}, gestures.BottomAsideGesture)
|
|
|
|
AsideConfig.delegate('type')
|
|
.when({type: 'overlay'}, types.AsideTypeOverlay)
|
|
.when({type: 'push'}, types.AsideTypePush)
|
|
.when({type: 'reveal'}, types.AsideTypeReveal)
|
|
|
|
|
|
AsideConfig.platform('android')
|
|
.defaults({ type: 'overlay' })
|
|
|
|
AsideConfig.platform('ios')
|
|
.defaults({ type: 'reveal' })
|