diff --git a/website/documentation/content/storage_documentation.py b/website/documentation/content/storage_documentation.py index 968e41539..3f06b6eec 100644 --- a/website/documentation/content/storage_documentation.py +++ b/website/documentation/content/storage_documentation.py @@ -42,6 +42,16 @@ The user storage and browser storage are only available within `page builder functions `_ because they are accessing the underlying `Request` object from FastAPI. Additionally these two types require the `storage_secret` parameter in`ui.run()` to encrypt the browser session cookie. + + | Storage type | `tab` | `client` | `user` | `general` | `browser` | + |-----------------------------|--------|----------|--------|-----------|-----------| + | Location | Server | Server | Server | Server | Browser | + | Across tabs | No | No | Yes | Yes | Yes | + | Across browsers | No | No | No | Yes | No | + | Across page reloads | Yes | No | Yes | Yes | Yes | + | Needs page builder function | Yes | Yes | Yes | No | Yes | + | Needs client connection | Yes | No | No | No | No | + | Write only before response | No | No | No | No | Yes | ''') def storage_demo(): from nicegui import app diff --git a/website/documentation/rendering.py b/website/documentation/rendering.py index c0c71d22d..cba64a79b 100644 --- a/website/documentation/rendering.py +++ b/website/documentation/rendering.py @@ -43,7 +43,9 @@ def render_content(): element = ui.restructured_text(part.description.replace(':param ', ':')) else: element = ui.markdown(part.description) - element.classes('bold-links arrow-links rst-param-tables') + element.classes('bold-links arrow-links') + if ':param' in part.description: + element.classes('rst-param-tables') if part.ui: part.ui() if part.demo: