|
@@ -11,6 +11,7 @@ from typing import Any, Callable, Dict, Optional, Union, overload
|
|
import nicegui
|
|
import nicegui
|
|
from nicegui import app as nicegui_app
|
|
from nicegui import app as nicegui_app
|
|
from nicegui import ui as nicegui_ui
|
|
from nicegui import ui as nicegui_ui
|
|
|
|
+from nicegui.functions.navigate import Navigate
|
|
from nicegui.elements.markdown import remove_indentation
|
|
from nicegui.elements.markdown import remove_indentation
|
|
|
|
|
|
from .page import DocumentationPage
|
|
from .page import DocumentationPage
|
|
@@ -69,7 +70,7 @@ def demo(element: type, /,
|
|
|
|
|
|
|
|
|
|
@overload
|
|
@overload
|
|
-def demo(function: Callable, /,
|
|
|
|
|
|
+def demo(function: Union[Callable, Navigate], /,
|
|
tab: Optional[Union[str, Callable]] = None,
|
|
tab: Optional[Union[str, Callable]] = None,
|
|
lazy: bool = True,
|
|
lazy: bool = True,
|
|
) -> Callable[[Callable], Callable]:
|
|
) -> Callable[[Callable], Callable]:
|