From 60f3963401b40d0f6543e5f082914ea5498a1a64 Mon Sep 17 00:00:00 2001 From: Maximilian Schulz Date: Mon, 23 Oct 2023 13:24:37 +0200 Subject: [PATCH] Add import path --- vizro-core/src/vizro/models/_components/table.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vizro-core/src/vizro/models/_components/table.py b/vizro-core/src/vizro/models/_components/table.py index 409fd5b76..b29d74be9 100644 --- a/vizro-core/src/vizro/models/_components/table.py +++ b/vizro-core/src/vizro/models/_components/table.py @@ -11,6 +11,7 @@ from vizro.models._components._components_utils import _process_callable_data_frame from vizro.models._models_utils import _log_call from vizro.models.types import CapturedCallable +import vizro.tables as vt logger = logging.getLogger(__name__) @@ -26,7 +27,7 @@ class Table(VizroBaseModel): """ type: Literal["table"] = "table" - table: CapturedCallable = Field(..., description="Table to be visualized on dashboard") # ADD import path + table: CapturedCallable = Field(..., import_path = vt, description="Table to be visualized on dashboard") actions: List[Action] = [] # Component properties for actions and interactions