Add automatic error rendering
See original GitHub issueVersions:
- VueJs: #.#.#
- Vee-Validate: #.#.#
Description:
Add automatic rendering of errors, and an optional attribute to disable that. For example writing
<span
class="text-danger"
v-show="errors.has('timerecord.id_projects')">
{{ errors.first('timerecord.id_projects') }}
</span>
is quite tedious, it would be awesome if this would be automated. Then an input where custom error showing is needed can have a flag like data-custom-error=“true” which would make the developer show the error how he wants to.
Steps To Reproduce:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
"Error compiling movie" during render or export in Adobe ...
Follow this guide to find solutions to the compiling error when rendering or exporting from Adobe Premiere Elements.
Read more >How To Fix Adobe Premiere Render and Export Errors (2022)
In this Adobe Premiere tutorial, I show you how to fix common render and export errors ! Comment below with which fix worked...
Read more >Custom error rendering in Slim 4 - Rob Allen's DevNotes
To write a new error renderer, we need to create a classs that implements SLim\Interfaces\ErrorRendererInterface. This interface requires a ...
Read more >Solved: what does error rendering macro 'awp-include' mean...
It means what it says, it's tried to do what the macro is telling it to do, and it can't render the result...
Read more >Error rendering input when editing a Component Definition
cs where <ComponentName> is the formatted name given to your Component Definition asset. The reason for the "Error rendering input.." error is because...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have implemented a small draft for the error display component which is a functional component similair to
router-link
andtransition
, I will work on finalizing its API and maybe add in more features. The current usage looks like this:Well I though I could address #1191 since I have more control over the displaying behavior, plus we get the richer API of custom components over directives, for example slots, more declarative, custom templates, easier reactivity setup, etc…
So far I haven’t decided on the features to include in the next release but these are the ones I have thought about:
feel free to suggest more since a lot can be done with a component.