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

How can represent default slot variables in the schema to use it in the children component of the schema #492

Open
BennaceurHichem opened this issue Sep 22, 2021 · 4 comments
Labels
feature request New feature or request

Comments

@BennaceurHichem
Copy link

How can represent default slot variables in the schema to use it in the children component of the schema

I want to use the index of the repeatable group in the children like mentioned in the doc:
https://vueformulate.com/guide/inputs/types/group/#index-of-current-group

Except that I'm using schema generation. How can I represent this default slot and pass it correctly into the group component schema?

@BennaceurHichem BennaceurHichem added the feature request New feature or request label Sep 22, 2021
@justin-schroeder
Copy link
Member

The current version of the schema does not really support this. Of course anything is possible, but you'll need to extract that data on your own and then provide it to a schema by passing the schema through a computed prop. FormKit's schema will be much more capable.

@BennaceurHichem
Copy link
Author

BennaceurHichem commented Sep 22, 2021

@justin-schroeder Is their any examples about this passing using computed properties please, and thanks for the FormKit recommendation

@joseph-sm
Copy link

+1 I would also like this feature added.

@jonathanjsh
Copy link

hi @BennaceurHichem, have you found any solution for this? I face the same problem now.

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

No branches or pull requests

4 participants