-
Notifications
You must be signed in to change notification settings - Fork 484
Description
Hey, good job on the plugin. It took me a while to figure out the flow of it but I got it in the end.
I've had to override the onSubmit() on the dialogs (vex.dialog.open doing an AJAX login script with multiple other dialogs to handle errors and whatnot).
At first I had a feeling that callback() was where to put the logic, but turns out it's not. beforeClose() isn't of much help since preventing close() by returning false from it of course would put it in a callback loop. So the really clean way is to remove the return this.close() from the default settings. Of course you know all of this, I'm just leaving this here for people who would have trouble getting the hang of it too.
I was wondering, is the lack of onSubmit documentation intentional? Is it supposed to be discarded at a later time?
Also I don't see a roadmap, but I get the feel that there's a lot more to come, am I right? I could help out on the effort since I feel I'll be using it a lot more in the coming months and will probably make it an 'internally supported' library at work. If you could share a roadmap, that would be really helpful to ensure we'd go in the same direction. Cheers!