Settings
Common configuration
Property | Type | Default | Description |
---|---|---|---|
modal | true | ModalSettings | false | Will present a modal style pane (see examples for more details) |
horizontal | boolean | false | Drag by horizontal axis will be possible on true and left right screen edge will automatically recognized as horizontal breakpoints |
horizontalOffset | number | 'null' | Margin left and right for screen edges used with horizontal gestures |
inverse | boolean | false | On true will change pane direction from bottom-to-top to top-to-bottom |
parentElement | string or HTMLElement | Parent element | Pane will be appended to this element as child |
followerElement | string | Follower element selector | Element with selector will following pane transitions |
cssClass | string | null | Additional classes to apply for wrapper to stylize different panes |
fitHeight | boolean | 'false' | Automatically calc and define content height as top breakpoint. Middle and bottom breakpoint will be disabled |
maxFitHeight | number | 'null' | Define a maximum possible automatically calculated height with fitHeight property |
fitScreenHeight | boolean | 'true' | On true will automatically adjust pane maximum height to screen height |
ionContentScroll | boolean | 'false' | On false will add scroll-y="false" attribute to ion-content directive when pane is visible |
initialBreak | 'top' | 'middle' | 'bottom' | 'middle' | Initial pane position |
backdrop | boolean | false | Dimmed overlay will rendered with pane if true |
backdropOpacity | number | 0.4 | Dimmed overlay opacity value |
backdropBlur | boolean | false | Will apply filter blur and filter saturation to backdrop on true |
animationType | string | 'ease' | Base transition timing function |
animationDuration | number | 300 | Transition property duration |
bottomClose | boolean | false | Close pane with drag to bottom breakpoint |
fastSwipeClose | boolean | false | Close pane with fast drag to bottom direction |
fastSwipeSensivity | number | 3 | Increase value and fast swipes become heavier |
freeMode | boolean | false | On true will remove automatical magnetic effects to near breakpoint |
lowerThanBottom | boolean | true | By default allow user to drag pane lower than bottom position. On false will automatically place pane to bottom position on lower than bottom attemption |
upperThanTop | boolean | false | Allow user to drag pane upper than maximum top position. Useful with bulletin style without overflow-y |
touchAngle | number | 45 | Allowable angle (in degrees) to trigger drag gestures |
buttonDestroy | boolean | true | Determinate whetever close button will render or not |
bottomOffset | number | 0 | Margin bottom for pane from screen bottom point |
topperOverflow | boolean | true | Ability to scroll content inside pane if topper point reached |
topperOverflowOffset | number | 0 | Offset from screen bottom to the end of overflow content |
showDraggable | boolean | true | Render rectangular shape on the top of pane |
draggableOver | boolean | true | Render rectangular shape over a pane |
clickBottomOpen | boolean | true | If bottom position reached, simple click to pane will open pane to the next upper point |
dragBy | string[] | null | Array of selectors for whom elements drag events will be attached. By default drag events attached to pane element. If you are about to drag only with draggable component set option to ['.pane .draggable'] |
preventClicks | boolean | true | Prevent accidental unwanted clicks events during move gestures |
handleKeyboard | boolean | true | Pane will be pushed up on open keyboard (only for cordova/capacitor/phonegap applications) |
touchMoveStopPropagation | boolean | false | If enabled, then propagation of "touchmove" will be stopped |
simulateTouch | boolean | true | Simulate touch events for Desktop |
passiveListeners | boolean | true | (Indicates that the function specified by listener will never call preventDefault()) |
Z-Stack
Configuration for 3D push effects and z-stack
js
let settings = {
...
zStack: {
pushElements: ['.card-1', '.main-content'],
pushYOffset: 10
}
}
Property | Type | Default | Description |
---|---|---|---|
pushElements | string[] | null | DOM Element will be pushed and scaled |
minPushHeight | number | null | Height from which 3d push effect will be started |
cardBorderRadius | number | null | Border radius for pushed elements |
cardYOffset | number | null | Margin value to place pushed elements upper |
cardZScale | number | 0.93 | Scale value for each pushed element |
cardContrast | number | 0.85 | Contrast value for each pushed element |
stackZAngle | number | 160 | Value from 0 to 3000 that define angle of z-stack in common. 0 - 150 positive expontial angle. 150 - 170 = 45 degree angle. 200 - 3000 negative exponential angle |
Modal
A simple way to create your own modal windows and popups from any elements
js
let settings = {
modal: true
};
or
js
let settings = {
...
modal: {
transition: 'fade',
flying: true,
dismissOnIntense: true
}
}
Property | Type | Default | Description |
---|---|---|---|
transition | fade | zoom | fade | Modal module has two built-in enter and leave transitions |
flying | boolean | false | Modal with dynamic flying effect animation to get user attention |
dismissOnIntense | boolean | false | Modal will be nicely dismissed on high-intense move events |