Comments (7)
For example I'd like to be able to attach an @click event to a built in button in the Template so I can call a method which has access to this
eg:
<EasyForm @cancel="myCancelMethod">
and I'd like access to value and context there if I needed them
from quasar-ui-easy-forms.
Hi @fergusmeiklejohn
you can do this:<EasyForm :key="counter" />
and
return default { data () { return { counter: 0 } } }Then if you increment the counter, the form is re-loaded and therefore reset. :)
I should add this to the docs!! Thanks for that.Incrementing the counter doesnt work. The form data remains as it is.
sry
forget to clear the form model. After that the counter incrementing clears the fields.
from quasar-ui-easy-forms.
Hi @fergusmeiklejohn
you can do this:
<EasyForm :key="counter" />
and
return default {
data () { return { counter: 0 } }
}
Then if you increment the counter, the form is re-loaded and therefore reset. :)
I should add this to the docs!! Thanks for that.
from quasar-ui-easy-forms.
ah that's clever! :-)
I've been trying this out in my app over the last two days and I really like it. Lots of power there. I feel like the API isn't quite perfect yet. I wonder if Vue3 will solve some of this? I really don't know Vue3 yet so can't comment, but I wonder if the composition API will help a common problem I had accessing methods and computed properties as I usually would to handle things in Vue2.
I feel like you need more abstraction for most common tasks, like resetting the form for example, while more flexibility to do what we want to do.. this is so difficult of course.
I also think more functionality around validation would be a selling point and generally delivering more difficult functionality with a simple API would be very useful.
from quasar-ui-easy-forms.
You can do already what you want!
Is it possible we chat on discord? It'll be easier to understand each other and I can then add examples to the docs of all the things you try to do.
Sent with GitHawk
from quasar-ui-easy-forms.
Hi @fergusmeiklejohn
you can do this:<EasyForm :key="counter" />
and
return default { data () { return { counter: 0 } } }Then if you increment the counter, the form is re-loaded and therefore reset. :)
I should add this to the docs!! Thanks for that.
Incrementing the counter doesnt work. The form data remains as it is.
from quasar-ui-easy-forms.
The new version Blitzar has dedicated documentation on resetting the form data!
See #43
from quasar-ui-easy-forms.
Related Issues (20)
- Add checkbox field HOT 1
- feat(EasyField) Add support for computed fields HOT 1
- review `format` and `parseInput` HOT 1
- plans for VERSION 1 HOT 1
- add validation HOT 1
- evaluated Props: changing dynamic options should reset values lower in hierarchy HOT 1
- Validation: "There are remaining errors" should disappear when all errors are removed HOT 1
- refactor(EasyField) make style & class props usable HOT 1
- refactor(EasyForm) disable field-error padding by default when no rules HOT 1
- formData should not include `undefined: undefined` when there are schema fields without ID HOT 1
- change dateformat from YYYY/MM/DD to DD/MM/YYYY HOT 6
- When use QOptionGroup, field is undefined in evaluatedProp function scope HOT 6
- Change position of action buttons HOT 3
- fields not editable in edit mode HOT 2
- display external validation messages HOT 8
- Compatibility with q/app v2 HOT 7
- Update easyFormValue at run time HOT 4
- Use QExpansion HOT 1
- New version: Blitzar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quasar-ui-easy-forms.