Is It Possible To Create a "PartialControl" Type For a Controller With a Field Value That Is Shared Between Different Controls? #4702
Unanswered
dudiharush
asked this question in
General
Replies: 1 comment
-
can you share a csb? |
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
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,
I have a Controller, and I need it to get a control prop that has a filed value that is shared between two different Controls sub field values, is it possible?
ex:
I manage cat and dog in different forms, and I want to share a component to manage their owners list.
I have
const catControl: Control<Cat> and const dogControl: Control<Dog>
both Cat and Dog have prop: owners: string[], which is a list of their owners, and I want to manage this list of owners in a shared Controller component. How can I do it? My current "solution" is using
Control<any>
type, so i can pass bothControl<Cat>
andControl<Dog>
Beta Was this translation helpful? Give feedback.
All reactions