You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a repost of a another issue available here: Kitware/trame-router#4 since I'm not sure what the best repo for it is.
Describe the bug
Some HtmlElements don't show up when defined in with statements, and I don't understand why. I suspect this has something to do with trame-router, but I'm not sure.
To Reproduce
Run the following code.
Code
fromtrame.appimportget_serverfromtrame.ui.vuetifyimportSinglePageWithDrawerLayoutfromtrame.ui.routerimportRouterViewLayoutfromtrame.widgetsimportvuetify, routerimporttrame.widgets.htmlashtmlserver=get_server()
server.client_type="vue2"state, ctrl=server.state, server.controllerdefcreate_table():
row=vuetify.VRow(style="height: 100%")
withrow:
withvuetify.VCol() ascol:
row.col=colreturnrow# Home routehome=RouterViewLayout(server, "/")
withhome:
withvuetify.VCard():
vuetify.VCardTitle("This is home")
home.table=create_table()
# Foo routewithRouterViewLayout(server, "/foo") asfoo:
withvuetify.VCard():
vuetify.VCardTitle("This is foo")
withvuetify.VCardText():
vuetify.VBtn("Take me back", click="$router.back()")
# Bar/idwithRouterViewLayout(server, "/bar/:id"):
withvuetify.VCard():
vuetify.VCardTitle("This is bar with ID '{{ $route.params.id }}'")
# Main page contentwithSinglePageWithDrawerLayout(server) aslayout:
layout.title.set_text("Multi-Page demo")
withlayout.content:
withvuetify.VContainer():
router.RouterView()
table=create_table()
# add router buttons to the drawerwithlayout.drawer:
withvuetify.VList(shaped=True, v_model=("selectedRoute", 0)):
vuetify.VSubheader("Routes")
withvuetify.VListItem(to="/"):
withvuetify.VListItemIcon():
vuetify.VIcon("mdi-home")
withvuetify.VListItemContent():
vuetify.VListItemTitle("Home")
withvuetify.VListItem(to="/foo"):
withvuetify.VListItemIcon():
vuetify.VIcon("mdi-food")
withvuetify.VListItemContent():
vuetify.VListItemTitle("Foo")
withvuetify.VListGroup(value=("true",), sub_group=True):
withvuetify.Template(v_slot_activator=True):
vuetify.VListItemTitle("Bars")
withvuetify.VListItemContent():
withvuetify.VListItem(v_for="id in [1,2,3]", to=("'/bar/' + id",)):
withvuetify.VListItemIcon():
vuetify.VIcon("mdi-peanut-outline")
withvuetify.VListItemContent():
vuetify.VListItemTitle("Bar")
vuetify.VListItemSubtitle("ID '{{id}}'")
withtable.col:
html.Div("This message shows on bottom")
withhome:
html.Div("This message shows on top")
withhome.table.col:
html.Div("This message does not show anywhere")
if__name__=="__main__":
server.start()
Expected behavior
A three Divs should (as far as I understand) appear in the UI, but only two of them do
Screenshots
Platform:
Device:
[ x] Desktop
Mobile
OS:
Windows
MacOS
Linux
Android
iOS
WSL Ubuntu
Browsers Affected:
Chrome
The text was updated successfully, but these errors were encountered:
Hi,
This is a repost of a another issue available here: Kitware/trame-router#4 since I'm not sure what the best repo for it is.
Describe the bug
Some HtmlElements don't show up when defined in with statements, and I don't understand why. I suspect this has something to do with trame-router, but I'm not sure.
To Reproduce
Run the following code.
Code
Expected behavior
A three Divs should (as far as I understand) appear in the UI, but only two of them do
Screenshots
Platform:
Device:
OS:
Browsers Affected:
The text was updated successfully, but these errors were encountered: