lordrip commented on issue #2093:
URL:
https://github.com/apache/incubator-kie-tools/issues/2093#issuecomment-1853812937
The first idea that comes to my mind is to create a `react Provider` that
will serve not only as an enabler of the feature but also as the locator for
the information.
```
const fn = (field: string) => {
// get the description for the field somehow using the field name
};
<DescriptionProvider locatorFunction={fn}>
<AutoForm .../>
</DescriptionProvider>
```
Then later on, the compatible fields can check whether the
`DescriptionProvider` exists or not, and if so, use the provided function to
retrieve the description.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]