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 get the "config" in Nuxt? #680

Open
code-ishwar opened this issue Apr 23, 2020 · 2 comments
Open

How get the "config" in Nuxt? #680

code-ishwar opened this issue Apr 23, 2020 · 2 comments

Comments

@code-ishwar
Copy link

I am using this Screen-Builder plugin in Nuxt.
This line returns null in Nuxt.
this.$root.$children[0].config

To add watchers in the form, the plugin uses the above code to collect all watchable elements, for User to select one of those, to add a watcher. Now in Nuxt, this method is not working to collect all the form elements. I tried other ways and also searching where are the elements stored in $root.$children, but no success.

@velkymx
Copy link
Contributor

velkymx commented Aug 18, 2020

Watchers are not reliably integrated into v1 of the screen builder. I recommend you look at the v2 branch.

@code-ishwar
Copy link
Author

code-ishwar commented Sep 11, 2020

This basically is same in both v1 and v2, as far as code is concerned.

https://github.com/ProcessMaker/screen-builder/blob/feature/updatev2/src/components/watchers-form.vue#L360

Why do you think v2 has fixed this?

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

No branches or pull requests

2 participants