Field meta data
#3975
Replies: 2 comments 3 replies
-
what do you mean by |
Beta Was this translation helpful? Give feedback.
3 replies
-
This would be very useful, because adding an controller for an none existing field sets the state of the form dirty, and using useWatch doesn't update when the values changes: #8721 I try to mark a field as conflicted with the server version but this is very hard to do now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A useful feature would be the ability to add metadata to an input. In order the do this now, I make the input and object and then write a custom
value
property andonChange
method to parse through and pull out the part the gets rendered.So my text input might look like
{text: 'this is what's is rendered', metaData: {}}
and then I need to override thevalue
andonChange
on the<Controller/>
to extract/update just the text part.It would be cool if there was a way to do this that was easier and more native. So for example a method called
setMeta(fieldName: string, meta: object)
.Beta Was this translation helpful? Give feedback.
All reactions