Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathSchema prop in templates #4217

Closed
1 task done
jroebu14 opened this issue Jun 13, 2024 · 2 comments
Closed
1 task done

pathSchema prop in templates #4217

jroebu14 opened this issue Jun 13, 2024 · 2 comments
Labels

Comments

@jroebu14
Copy link
Contributor

jroebu14 commented Jun 13, 2024

Prerequisites

What theme are you using?

core

Is your feature request related to a problem? Please describe.

Is it possible to get the current pathSchema in templates similar to how you get the current idSchema?

For example, in a template, if the idSchema prop is "root_x_y_z" then the pathSchema prop would be "x.y.z".

Describe the solution you'd like

I'd like pathSchema as a prop provided to all template components.

Describe alternatives you've considered

No response

@jroebu14 jroebu14 added feature Is a feature request needs triage Initial label given, to be assigned correct labels and assigned labels Jun 13, 2024
@heath-freenome
Copy link
Member

@jroebu14 using the idSchema, you can extract the path fairly simply by setting the idSeparator prop on the Form to be . and then slicing out the root.

@heath-freenome heath-freenome added question and removed needs triage Initial label given, to be assigned correct labels and assigned feature Is a feature request labels Jun 28, 2024
@jroebu14
Copy link
Contributor Author

@jroebu14 using the idSchema, you can extract the path fairly simply by setting the idSeparator prop on the Form to be . and then slicing out the root.

@heath-freenome this is a good solution. I'll go with this. Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants