trame: specify item specific slots

How do I add item-specific dynamic slots for VDataTable? e.g I want to model this Vuetify example in trame, how can I do it?

    <template v-slot:item.calories="{ item }">
        {{ item.calories }}

ref: Vuetify β€” A Material Design Framework for Vue.js

with vuetify.VDataTable(
  headers=("headers", [...]),
  items=("desserts", [...]),
  with vuetify.Template(
    calories="{ item }",
      ("calories", "v-slot:item.calories"),
      "{{ item.calories }}"
1 Like

That did the trick. Thanks!

1 Like

While we can automate most of the static properties. For that use case, we don’t know the shape of the data and therefore, we need to tell the Widget to convert a specific keyword argument into a specific JS property. That API is captured on the Abstract class which let you do custom mapping on properties and events.

1 Like