adds remote source to modal. Remote source can be specified in href or by providing a remote option #936

This commit is contained in:
Jacob Thornton
2012-06-03 21:26:54 -07:00
parent 041b8bdfd3
commit 82ea5847a7
6 changed files with 30 additions and 10 deletions

View File

@@ -191,6 +191,13 @@
<td>{{_i}}true{{/i}}</td>
<td>{{_i}}Shows the modal when initialized.{{/i}}</td>
</tr>
<tr>
<td>{{_i}}remote{{/i}}</td>
<td>{{_i}}path{{/i}}</td>
<td>{{_i}}false{{/i}}</td>
<td><p>{{_i}}If a remote url is provided, content will be loaded via jQuery's <code>load</code> method and injected into the <code>.modal-body</code>. If you're using the data api, you may alternatively use the <code>href</code> tag to specify the remote source. An example of this is shown below:{{/i}}</p>
<pre class="prettyprint linenums"><code>&lt;a data-toggle="modal" href="remote.html" data-target="#modal"&gt;click me&lt;/a&gt;</code></pre></td>
</tr>
</tbody>
</table>
<h3>{{_i}}Markup{{/i}}</h3>