modal dialog - Opening Foundation Reveal on Click & Callback Functions? -
I am migrating from the jQueryTools overlay, and I can not really understand the docs how an open javascript is open accident.
It is believed that I have this code:
& lt; A href = "# Appearance Model" class = "Reveal Trigger" & gt; Click me for a model & lt; / A & gt; & Lt; Div id = "manifested model" class = "manifest-mode" & gt; & Lt; P & gt; I have a good paragraph that lives inside a cooler model; / P & gt; & Lt; / Div & gt; Typically, I code code code in the jQueryTools overlay, such as the code:
$ ('.tracker'). Click (function () {$ ('#revealModal') Reveal ();}); But does this work do the same true code appear for it?
And what about the callback events? I can write something like this:
$ ('reveal'). Click (function () ($ ('# revealModal'). Reveal ({open: function () {// Prepare some things before showing}, opened: function () {// Open by Open Function Execute the material}}}};});
A manifest modal two methods By specialty:
& lt; a href = "#" data-revealed- id = "myModal" & gt; Click me for a model & lt; / A & gt; & lt; div id = "mymodal" class = "manifest-mode" & gt; & lt; h2 & gt; very good. & Lt; / h2 & gt; & lt; p class = "lead" & gt; your couch is mine. & Lt; / p & gt; & lt; p & gt; I have a good paragraph that is a cooler model Living in. Live A class = "closed-manifest-mode" & gt; & amp; # 215; & lt; / a & gt; & lt; / div & gt; or JavaScript:
one square = "big button" onclick = "javascript: showModal ();" Href = "#" & Show gt; Model & lt; / a & gt; & lt; script & gt; $ ('#MyModal'). Foundation ('open', {open: function}} {warnings ('sofa had been stolen!');}, Closed: work () (warning ("now it's yours again");}}); $ (Document) .foundation (); Function Show Model () {$ ('# myModal'). Foundations ('open', 'open'); } & Lt; / Script & gt;
Comments
Post a Comment