multiselect
multiselect copied to clipboard
How to manually return true/false to BeforeMoveToLeft/Right based on ajax request success?
I am making a ajax call within the BeforeMoveToLeft/Right event but i do not know how to return based on ajax success response the true/false to the event in order to proceed/do not proceed the change in the selects. Ithere a way we can inject true/false to these multiselect function based on service response to make them work?
Hi @Jogii
Probably you need to make use of a promise
in order to make the function
wait for your ajax
request to be done ?
I'm sorry, it's not the answer you looking for, but BeforeMoveToLeft/Right event does not fire with me, so how do you manage it? thanks
Perhaps you can check the async / await functions?”.
Sent from my iPhone
On 27 Jul 2021, at 12:52, Hossam Abdelmajeed @.***> wrote:
I'm sorry, it's not the answer you looking for, but BeforeMoveToLeft/Right event does not fire with me, so how do you manage it? thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.