How to use Zurb Foundation reveal with open, opened, close, closed callback functions?

后端 未结 9 541
执念已碎
执念已碎 2021-02-05 01:41

On zurb foundation\'s website at http://foundation.zurb.com/docs/reveal.php they listed some Options including

open: callback function that triggers \'before\' the

9条回答
  •  一向
    一向 (楼主)
    2021-02-05 02:18

    Call reveal like you normally would, but include the name of the option and corresponding function as an object:

    //Reveal the modal and say "Good bye" when it closes
    $("#myModal").reveal({ "closed": function () { alert("Good bye") } });
    

提交回复
热议问题