Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bed93f8

Browse files
committed
usage sample
1 parent 4fce8e0 commit bed93f8

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,34 @@ <h2>Usage</h2>
130130
</div>
131131
</div>
132132

133-
<p>Coming soon...</p>
133+
<h3>Basic Usage</h3>
134+
135+
<pre><code class="html">
136+
&lt;div class=&quot;grid-stack&quot;&gt;
137+
&lt;div class=&quot;grid-stack-item&quot;
138+
data-gs-x=&quot;0&quot; data-gs-y=&quot;0&quot;
139+
data-gs-width=&quot;4&quot; data-gs-height=&quot;2&quot;&gt;
140+
&lt;div class=&quot;grid-stack-item-content&quot;&gt;&lt;/div&gt;
141+
&lt;/div&gt;
142+
&lt;div class=&quot;grid-stack-item&quot;
143+
data-gs-x=&quot;4&quot; data-gs-y=&quot;0&quot;
144+
data-gs-width=&quot;4&quot; data-gs-height=&quot;4&quot;&gt;
145+
&lt;div class=&quot;grid-stack-item-content&quot;&gt;&lt;/div&gt;
146+
&lt;/div&gt;
147+
&lt;/div&gt;
148+
149+
&lt;script type=&quot;text/javascript&quot;&gt;
150+
$(function () {
151+
var options = {
152+
cell_height: 80,
153+
vertical_margin: 10
154+
};
155+
$('.grid-stack').gridstack(options);
156+
});
157+
&lt;/script&gt;
158+
</code></pre>
159+
160+
<p>For more samples and documentation please visit <a href="https://github.com/troolee/gridstack.js">https://github.com/troolee/gridstack.js</a>.</p>
134161

135162
<h3>Use with knockout.js</h3>
136163

@@ -225,7 +252,7 @@ <h3>Use with knockout.js</h3>
225252
<!-- Custom Theme JavaScript -->
226253
<script src="freelancer/js/freelancer.js"></script>
227254

228-
<script src="gridstack.js"></script>
255+
<script src="jquery.gridstack.js"></script>
229256
<script type="text/javascript">
230257
hljs.initHighlightingOnLoad();
231258
$(function () {
File renamed without changes.

0 commit comments

Comments
 (0)