usage sample
This commit is contained in:
parent
4fce8e0be5
commit
bed93f845c
2 changed files with 29 additions and 2 deletions
31
index.html
31
index.html
|
|
@ -130,7 +130,34 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p>Coming soon...</p>
|
||||
<h3>Basic Usage</h3>
|
||||
|
||||
<pre><code class="html">
|
||||
<div class="grid-stack">
|
||||
<div class="grid-stack-item"
|
||||
data-gs-x="0" data-gs-y="0"
|
||||
data-gs-width="4" data-gs-height="2">
|
||||
<div class="grid-stack-item-content"></div>
|
||||
</div>
|
||||
<div class="grid-stack-item"
|
||||
data-gs-x="4" data-gs-y="0"
|
||||
data-gs-width="4" data-gs-height="4">
|
||||
<div class="grid-stack-item-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var options = {
|
||||
cell_height: 80,
|
||||
vertical_margin: 10
|
||||
};
|
||||
$('.grid-stack').gridstack(options);
|
||||
});
|
||||
</script>
|
||||
</code></pre>
|
||||
|
||||
<p>For more samples and documentation please visit <a href="https://github.com/troolee/gridstack.js">https://github.com/troolee/gridstack.js</a>.</p>
|
||||
|
||||
<h3>Use with knockout.js</h3>
|
||||
|
||||
|
|
@ -225,7 +252,7 @@ ko.components.register('dashboard-grid', {
|
|||
<!-- Custom Theme JavaScript -->
|
||||
<script src="freelancer/js/freelancer.js"></script>
|
||||
|
||||
<script src="gridstack.js"></script>
|
||||
<script src="jquery.gridstack.js"></script>
|
||||
<script type="text/javascript">
|
||||
hljs.initHighlightingOnLoad();
|
||||
$(function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue