You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/components/sheet/sheet.d.ts
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,13 @@ export namespace Sheet {
49
49
swipeToClose?: boolean;
50
50
/** When enabled it will be possible to split opened sheet into two states: partially opened and fully opened that can be controlled with swipe (default false) */
51
51
swipeToStep?: boolean;
52
+
/** Use instead of swipeToStep to enable swipe breakpoints. Must be an array of numbers > 0 and < 1, where 0 is fully closed and 1 is fully opened */
53
+
breakpoints?: number[];
54
+
/** Define breakpoint point when backdrop becomes visible */
55
+
backdropBreakpoint?: number;
52
56
/** When enabled it will be possible to close sheet with swipe only on specified handler element (default null) */
53
57
swipeHandler?: HTMLElement|CSSSelector;
58
+
54
59
/** When enabled it will push view behind on open. Works only when top safe area is in place. It can also be enabled by adding `sheet-modal-push` class to Sheet element. (default false) */
55
60
push?: boolean;
56
61
/** Element to mount modal to. (default app.el) */
@@ -87,7 +92,7 @@ export namespace Sheet {
87
92
stepClose(): void;
88
93
/** Toggle (open or close) sheet swipe step */
89
94
stepToggle(): void;
90
-
/** Update step position. Required to call after content of sheet modal has been modified manually when it is opened */
95
+
/** Update (recalculate) breakpoints positions. Required to call after content of sheet modal has been modified manually when it is opened */
0 commit comments