From 72a4957d826c91f09a0d625677ae5c938988b090 Mon Sep 17 00:00:00 2001 From: petar-qb Date: Mon, 20 Nov 2023 13:30:33 +0100 Subject: [PATCH] Adding controls and export data button to page_2 and page_3 --- vizro-core/examples/default/app.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vizro-core/examples/default/app.py b/vizro-core/examples/default/app.py index 73a9d7893..4c7803b6d 100644 --- a/vizro-core/examples/default/app.py +++ b/vizro-core/examples/default/app.py @@ -229,6 +229,9 @@ ], ), ], + controls=[ + vm.Filter(column="continent"), + ] ) page_3 = vm.Page( title="Third page", @@ -249,8 +252,17 @@ ], ) ] - ) + ), + vm.Button( + text="Export data", + actions=[ + vm.Action(function=export_data()), + ], + ), ], + controls=[ + vm.Filter(column="continent"), + ] ) dashboard = vm.Dashboard(pages=[page, page_2, page_3])