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
# Using a `.bookmark_exclude = []` and `._get_bookmark_exclude()` helper that accesses a `._bookmark_exclude_fns` list of functions which return scoped bookmark excluded values
# Session updates -> Require updates for `SessionProxy` object
48
-
# * √ `doBookmark()` -> Update query string
49
-
# * √ Update query string
50
-
51
-
# bookmark -> restore state
52
-
# restore state -> {inputs, values}
53
-
# restore {inputs} -> Update all inputs given restored value
54
-
55
-
# Shinylive!
56
-
# Get query string from parent frame / tab
57
-
# * Ignore the code itself
58
-
# * May need to escape (all?) the parameters to avoid collisions with `h=` or `code=`.
59
-
# Set query string to parent frame / tab
60
-
61
-
62
15
ifTYPE_CHECKING:
63
16
from ..express._stub_sessionimportExpressStubSession
64
17
from ..moduleimportResolvedId
@@ -102,7 +55,9 @@ def __init__(self):
102
55
self._on_restore_callbacks=AsyncCallbacks()
103
56
self._on_restored_callbacks=AsyncCallbacks()
104
57
105
-
# Making this a read only property as app authors will not be able to change how the session is restored as the server function will run after the session has been restored.
58
+
# Making this a read only property as app authors will not be able to change how the
59
+
# session is restored as the server function will run after the session has been
60
+
# restored.
106
61
@property
107
62
@abstractmethod
108
63
defstore(self) ->BookmarkStore:
@@ -174,8 +129,9 @@ def on_bookmarked(
174
129
Parameters
175
130
----------
176
131
callback
177
-
The callback function to call when the session is bookmarked.
178
-
This method should accept a single argument, the string representing the query parameter component of the URL.
132
+
The callback function to call when the session is bookmarked. This method
133
+
should accept a single argument, the string representing the query parameter
This method will also call the `on_bookmark` and `on_bookmarked` callbacks to alter the bookmark state. Then, the bookmark state will be either saved to the server or encoded in the URL, depending on the `.store` option.
188
+
This method will also call the `on_bookmark` and `on_bookmarked` callbacks to
189
+
alter the bookmark state. Then, the bookmark state will be either saved to the
190
+
server or encoded in the URL, depending on the `.store` option.
232
191
233
192
No actions will be performed if the `.store` option is set to `"disable"`.
# Making this a read only property as app authors will not be able to change how the session is restored as the server function will run after the session has been restored.
218
+
# Making this a read only property as app authors will not be able to change how the
219
+
# session is restored as the server function will run after the session has been
0 commit comments