What does your plugin need to do exactly? You can get hold of the current pages field data in a panel Vue compent by going through this.$store for example i read the product ID from the field value in my snipcart plugin like this:
Unfortunately this does not really help. For most of the standard attributes like label or help you can use the query language. I am looking for a way to use them either directly in vue.js or in the yaml markup.
My usecase is actually relatively simple. I don’t know if this is the best way to do it. I need a field where the user enters the ID of a YouTube video. Then he can press the download button. Since I do not know how to trigger functions directly in the backend, I do this via a small detour. The user presses the button, he is led to the frontend where a function is executed (in this case the YouTube thumbnail is loaded on the page) and he is led directly back to the backend.
That’s why I have to include the page url and the page panel url in the GET parameters that I can redirect back. Or is there another way to do this?
I don’t have success with $this->model() or the getters as I don’t need a field, I need access to the $page object. Cause of this I was also asking how to include the Query language in my own fields.
And yes, I know that I could also use the Janitor plugin for this, but at some point I have to learn to make my own field and this seemed to me a good usecase.