-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surprising results using routers #4
Comments
For some reason, it seems that manually adding a I think this is a bug. Can you confirm ? |
Could you explain what is your intent in doing that? def create_table():
row = vuetify.VRow(style="height: 100%")
with row:
with vuetify.VCol() as col:
row.col = col
return row
# Home route
home = RouterViewLayout(server, "/")
with home:
with vuetify.VCard():
vuetify.VCardTitle("This is home")
home.table = create_table() I don't understand what you try to do when you assign Also at the exit of any |
Are you trying to do the following? with RouterViewLayout(server, "/"):
with vuetify.VCard():
vuetify.VCardTitle("This is home")
with vuetify.VRow(style="height: 100%"):
vuetify.VCol() |
Thanks @jourdain for your response.
Indeed, If the tutorial made a distinction between those two notions (key to what you call "properly define your hierarchy"), I probably would have had an easier time. |
You are correct, only the layout will flush itself at the exit of its with. So to summarize:
If you see a good spot to add the text above, feel free to add a PR or suggest a location for it. |
Hi,
I'm a trame beginner, and I cannot tell whether the results I'm getting are expected or if there is a bug.
I've modified the example at https://github.com/Kitware/trame-router/blob/master/examples/vue2/basic.py to show what I mean:
I added three
html.Div
s in the example (last lines). Only two of them show up in the UI, and I cannot make sense of why.Could you please help me understand what is happening?
Cheers,
Gabriel Fougeron
The text was updated successfully, but these errors were encountered: