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: nbs/tutorials/quickstart_for_web_devs.ipynb
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1282,7 +1282,9 @@
1282
1282
"2. Toasts require sessions\n",
1283
1283
"3. Views with Toasts must return FT or FtResponse components.\n",
1284
1284
"\n",
1285
-
"💡 `setup_toasts` takes a `duration` input that allows you to specify how long a toast will be visible before disappearing. For example `setup_toasts(duration=5)` sets the toasts duration to 5 seconds. By default toasts disappear after 10 seconds."
1285
+
"💡 `setup_toasts` takes a `duration` input that allows you to specify how long a toast will be visible before disappearing. For example `setup_toasts(duration=5)` sets the toasts duration to 5 seconds. By default toasts disappear after 10 seconds.\n",
1286
+
"\n",
1287
+
"⚠️ Toasts don't work with SPA like navigation that replaces the entire body such as this navigation trigger `A('About', hx_get=\"/about\", hx_swap=\"outerHTML\", hx_push_url=\"true\", hx_target=\"body\")`. As an alternative, wrap the content of your route in an element containing an id and set this id as the target for your navigation trigger (i.e. `hx_target='#container_id'`). "
0 commit comments