I am working on some custom Xibo functionality. It seems like the rendering functions do not return any useful objects (only false).
I was expecting to call XiboFormRender and receive a Promise so I can then use further handlers. I know you return false so the href doesn’t get handled, but couldn’t you use Event.preventDefault to prevent the event from bubbling up and return the Ajax call instead? I have not seen a particular instance in Xibo where that wouldn’t work, but I just wanted to check.
Even further in the future I would also like to know whether particular form (eg. a delete confirmation) was confirmed or cancelled (I guess with a proper promise I could attach to the buttons).
Right now I subscribe to the global ajaxSuccess handler to “check” when a DELETE was issued which feels a bit dirty.