Replies: 4 comments
-
I am still trying to figure out how to support slots that accept props, it is not a simple problem. If a slot accepts just a component it will work fine. If a slot needs props, then it will not work. It looks like top also needs props, it doesn't just accept a component. In this regard, ag-grid is simpler to work with since as almost all its features are defined using the options dictionary. |
Beta Was this translation helpful? Give feedback.
-
You would need a react method like construction (with props instead of data as an argument perhaps) and that would have to "called" from the client side. Which would probably require hooking into the vue template rendering process. I can see how that would be complicated. |
Beta Was this translation helpful? Give feedback.
-
Hi Eli, |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Quasar's QTable is pretty flexible. Part of this flexibility is through slots.
I tried this for the top_slot but it does not show:
Are slots not supported yet on QTable?
In addition: the top_slot is fairly straightforward. The body slot (https://quasar.dev/vue-components/table#Body-slots) and header slot seem to have a twist. Consider this example:
Note the props 'argument' to the body slot. I wouldn't know how to translate this to JustPy.
Maybe this calls for a 'slot function' that returns the slot content and passes 'props' as an argument. But that presumes some calling mechanism from the frontend to the backend, right?
Beta Was this translation helpful? Give feedback.
All reactions