-
|
I still explore the capacity of this awesome Framework !!! I managed to create a custom Js VueComponent with its v-model and its own behaviour through a vuejs plugin, which adds this TestComponent to the app in the install entrypoint. install: function(app, options){
app.component("TestComponent",TestComponent);
},It behaves as expected when used in python :
class TestComponent(HtmlElement):
def __init__(self, children=None, **kwargs):
super().__init__("TestComponent", children, **kwargs)
TestComponent(v_for="(data,ind) in my_list"))
Is there a way to create such a TestComponent only from the python side. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I'm not sure what you are asking? It seems that you managed to build your JS lib and use it from Python. Are you asking how to skip the JS lib build by doing everything from Python or something else? |
Beta Was this translation helpful? Give feedback.
If you are just composing what is already there html/vuetify/... you can definitely do it from Python.
You can see some examples here.
In several customers projects (close source), I have tuned VCard with built-in collapsible behavior written in plain Python.