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: nicegui/elements/sub_pages.py
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ def __init__(
25
25
*,
26
26
root_path: Optional[str] =None,
27
27
data: Optional[Dict[str, Any]] =None,
28
+
show_404: bool=True,
28
29
) ->None:
29
30
"""Create a container for client-side routing within a page.
30
31
@@ -37,6 +38,7 @@ def __init__(
37
38
:param routes: dictionary mapping path patterns to page builder functions
38
39
:param root_path: path prefix to strip from incoming paths (for non-root page mounts)
39
40
:param data: arbitrary data passed to all page builder functions
41
+
:param show_404: whether to show a 404 error message if the full path could not be consumed; this can be useful for dynamically created nested sub pages
0 commit comments