You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anyway to get the full path of id in the widget? For example, in WidgetProps, there is an id already.
interface WidgetProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> extends GenericObjectType, Pick<HTMLAttributes<HTMLElement>, Exclude<keyof HTMLAttributes<HTMLElement>, 'onBlur' | 'onFocus'>> {
/** The generated id for this widget, used to provide unique `name`s and `id`s for the HTML field elements rendered by
* widgets
*/
id: string;
but this id is just name of the field, not very specific to its context. Are there any helper functions in utils that might provide that info? I'm looking for something similar to the errorproperty id given during validation, i.e., info.person.1.last_name
If not, any thoughts on how I'd approach adding this in?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there anyway to get the full path of
id
in the widget? For example, inWidgetProps
, there is anid
already.but this
id
is just name of the field, not very specific to its context. Are there any helper functions inutils
that might provide that info? I'm looking for something similar to theerrorproperty
id given during validation, i.e.,info.person.1.last_name
If not, any thoughts on how I'd approach adding this in?
Thanks,
Chris
Beta Was this translation helpful? Give feedback.
All reactions