From eb4a6283b2d1585d7c34b189c94871563817940e Mon Sep 17 00:00:00 2001 From: willdunklin Date: Thu, 3 Nov 2022 13:17:29 -0400 Subject: [PATCH] docs(website): correct tutorial code examples --- docs/content/docs/trame_v2_migration.md | 2 +- docs/content/docs/tutorial-html.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/trame_v2_migration.md b/docs/content/docs/trame_v2_migration.md index 710855fc..86ca9f4b 100644 --- a/docs/content/docs/trame_v2_migration.md +++ b/docs/content/docs/trame_v2_migration.md @@ -30,7 +30,7 @@ from trame.ui.vuetify import SinglePageLayout from trame.widgets import vuetify, html server = get_server() -state, controller = server.state, server.controller +state, ctrl = server.state, server.controller [...] diff --git a/docs/content/docs/tutorial-html.md b/docs/content/docs/tutorial-html.md index 1d24065a..6a18adac 100644 --- a/docs/content/docs/tutorial-html.md +++ b/docs/content/docs/tutorial-html.md @@ -129,11 +129,11 @@ with SinglePageLayout(server) as layout: hide_details=True, dense=True, ) - vuetify.VBtn( - vuetify.VIcon("mdi-crop-free"), + with vuetify.VBtn( icon=True, click=ctrl.view_reset_camera, # <-- Use that reset_camera (init order does not matter) - ) + ): + vuetify.VIcon("mdi-crop-free") ``` **Running the Application**