Forcing widget refresh on frontend & the backbone view reference #15476
thsbrown
announced in
Developers Community
Replies: 2 comments
-
I too wanted similar functionality. I wanted to refresh a widget say post widget on trigger of an action from my custom widget. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Elementor Documentation for developers is awful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm curious if there is a relatively simple way to force refresh/reload a widget via ajax?
After doing extensive research into the code base it looks, like the
resetStyle()
method bound to the widget context menu / backbone.view would work for me, unfortunately that would require the backbone view reference.Is there any easy way to get a backbone.view reference to a widget via javascript? If not is there any other way I might be able to refresh/reload my widget another way?
The reason this is all necessary is that elementor currently does not fire the
element_ready
action when dragging and dropping on a widget in the same location see here, so some of my code is failing to reinitialize despite something changing when the dragging and dropping on same location occurs.Code For Reference
Beta Was this translation helpful? Give feedback.
All reactions