Closed Powers-RC closed 7 years ago
I am reopening this issue because I am having trouble running multiple functions on select still. It seems that every time I select an option only one of the functions runs. Any suggestions on how to accomplish this?
Hi @Powers-RC, the interface only defines one callback, if you need to call multiple functions you would need to call them all inside that one callback. ie,
select: function() {
methodA();
methodB();
}
If this list is dynamic you would need to store them somewhere (like a map or array) and the iterate over this list to call them one by one.
Thank you, this is what I needed to know.
I am wondering if anyone has or knows how to call on several functions when an image is selected? I am considering just chaining the functions together by calling them inside the
select: function()
but I am against doing this. Also wondering if anyone has tried chaining multiple.imagepicker()
functions together and how that resulted? I am getting ready to try all this so I will update this if I find a solution. Just wondering if someone has accomplished this already.