Dynamically generated q-input v-model data binding issue #14531
Unanswered
NetMango
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All.
I'm really new in Quasar (2.8.4) and Vue3, I've just started to get know with'em. I have to migrate cca 10 year old ExtJs code to this platform in order to achieve our customers a new look and feel and to able to create Android app from the same code base with Cordova.
In the old code we generate every UI elements from JSON response dynamically and and this is to be taken literally: tabs, grids, forms, tree menus, events etc. It's a fully flexible system.
My first issue now is:
I have a test array filled with objects like we used to receive from REST JSON answer:
I created an FInputField.vue object:
And I have a TestForm.vue file to test it:
I know that I have to bind template --> v-model to a JS variable, but I can't achieve this any dynamic way. It works, when i write tests with static variables, but I cannot bind this dynamically. No matter what i try, data never binds to v-model and cannot change and cannot read.
Please help me find the way to this completely different way of thinking, than what I am used to. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions