Skip to content

Commit

Permalink
docs(website): correct tutorial code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
willdunklin committed Nov 4, 2022
1 parent 9c81ea9 commit eb4a628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/content/docs/trame_v2_migration.md
Expand Up @@ -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

[...]

Expand Down
6 changes: 3 additions & 3 deletions docs/content/docs/tutorial-html.md
Expand Up @@ -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**

Expand Down

0 comments on commit eb4a628

Please sign in to comment.