In my custom field plugin I want to react when the user updates a file (see Github issue).
I found this solution by @distantnative for file.create, but couldn’t find an event for file.update.
Any panel experts here? Am I missing something?
In my custom field plugin I want to react when the user updates a file (see Github issue).
I found this solution by @distantnative for file.create, but couldn’t find an event for file.update.
Any panel experts here? Am I missing something?
Maybe this.$events.$emit("model.update")?
(Not a Panel expert)
model.Update should indeed be the correct event. Currently we don’t have a specific one just for files. We plan to have better more granular events in the future.
However it’s not $emit - that’s sending it the event - but
this.$events.$on(“model.update”, this.yourmethodtocall)