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: README_API.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,18 @@ Clear the stack of screens completely. Any visible screen will be hidden by navi
40
40
*`callback` (function) - Optional function to call when the stack has been cleared.
41
41
42
42
43
-
## monarch.back([data], [callback])
43
+
## monarch.back([options], [data], [callback])
44
44
Go back to a previous Monarch screen. This operation will be added to the queue if Monarch is busy.
45
45
46
46
**PARAMETERS**
47
+
*`options` (table) - Options when showing the new screen (see below).
47
48
*`data` (table) - Optional data to associate with the screen you are going back to. Retrieve using `monarch.data()`.
48
49
*`callback` (function) - Optional function to call when the previous screen is visible.
49
50
51
+
The options table can contain the following fields:
52
+
53
+
*`sequential` (boolean) - If the `sequential` flag is set Monarch will start loading the screen only after the previous screen finished transitioning out.
Preload a Monarch screen. This will load but not enable the screen. This is useful for content heavy screens that you wish to be able to show without having to wait for it load. This operation will be added to the queue if Monarch is busy.
0 commit comments