Skip to content

Feature request: Additional event when creating entries using the widget #9

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

Open
ancaemcken opened this issue Aug 1, 2022 · 1 comment

Comments

@ancaemcken
Copy link

Hi,

Thanks for the awesome widget 😀

I have set up the widget to get existing values from an API route (server/api route in a Nuxt3 app).
I was wondering if you could add functionality such that when creating an entry, the widget makes a POST request to an endpoint specified in another property of the widget.

With such functionality, I can sync my entries without having to visit the collection itself and make the additions manually (interrupts the editing flow).

@ancaemcken ancaemcken changed the title Additional event when creating entries using the widget Feature request: Additional event when creating entries using the widget Aug 1, 2022
@Andful
Copy link
Owner

Andful commented Aug 2, 2022

Interesting idea! I will see what I can do. It has been a while since I contributed to this project and I think a some refactoring is due. I am not sure how soon I can get to this.
I was thinking of adding events, like initialization even, entry created event and others which you can attach callbacks to.

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