laravel-enso / enso

Laravel Vue SPA, Bulma themed. For demo login use `admin@laravel-enso.com` & `password` -
https://www.laravel-enso.com
MIT License
1.08k stars 277 forks source link

multiple v-model binding in enso #298

Closed subtain-haider closed 4 years ago

subtain-haider commented 4 years ago

This is a feature request.

Prerequisites

Description

I have following packages and there database tables respectively:

Companies: https://github.com/subtain-haider/companies_backend companies

Grades: https://github.com/subtain-haider/vendor_sibtain/tree/master/grades/src grades

Classrooms: https://github.com/subtain-haider/vendor_sibtain/tree/master/classrooms classrooms

now while creating a new class room I select a company and then a grade and after tht there is an input field named "abbreviation" I want that when I select the company: its code(database field of companies table ) should be displayed in the abbreviation text field. and when I select the grade,: its abbreviation(database field of grades table ) should be written after the code in the abbreviation text field.

For example in above pictures, first company have code: OX1 first grade have abbreviation: 11MED

so when I select first company and then first grade, the abbreviation field should have this value: OX11MED

and similarly if I select another company or grade, it should change accordingly. we can do this in vue by binding and using :value bt I dont know how to do it in enso? kindly give me some heading points or any example that I can refer to?

here is a video demonstration of my requirement. https://drive.google.com/file/d/1l42RmM5wj3LPa_fzwff6R_VLggdXPEX_/view

Thanks.

subtain-haider commented 4 years ago

Anyone help???

aocneanu commented 4 years ago

how to do it in enso

What do you mean by that?

Enso is a boilerplate, not a programming language so you would do it exactly how you do it in Vue.

If you are using forms, this issue belongs to the forms repo

- [ ] Are you reporting to the correct repository?
(enso is made of many specialized packages: https://github.com/laravel-enso)

(no -> laravel-enso/forms / enso-ui/forms)

If that is the case you will have to set your field as custom in meta (form template).

You have examples of almost everyting in Enso so if:

- [ ] Did you check the documentation?

(no -> link) or (no -> link) or

- [ ] Did you perform a cursory search?

(no -> link)

You would find all answers.

Meanwhile use this and this as an inspiration.

If you don't have the time to search and explore yourself you can get anytime a support package from us and that will grant you monthly hours of priority support on any Enso related topic, including training, best practices and so on.

Please keep in mind that we use the github issues mainly for bug reporting and feature requests.

subtain-haider commented 4 years ago

yes I would like a support package from you, how can I get it? can we discuss about tht?

aocneanu commented 4 years ago

Email me.

subtain-haider commented 4 years ago

Sent

aocneanu commented 4 years ago

Responded