Open 12rambau opened 9 months ago
This is missing from the documentation, but you can't use the variable in python code. It basically only works for passing event handlers to v_on=
like this example:
v.Tooltip(bottom=True, v_slots=[{
'name': 'activator',
'variable': 'tooltip',
'children': v.Btn(v_on='tooltip.on', color='primary', children=[
'button with tooltip'
]),
}], children=['Insert tooltip text here'])
I try to reproduce the following exaple from the vuetify documentation: https://v2.vuetifyjs.com/en/components/treeview/#slots.
It's a treeview where all the arrows are replaced with the appropriate icon. If I look at the Template version of the example it looks like this:
I tried to translate it into a Python object:
But I got the following display:
How should I use the
v-if
v-else
parameter to make it display only the folder ? Also how can I use theprops.item.file
value to search in a dictionnary of icons ?