File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,34 @@ <h2>Usage</h2>
130
130
</ div >
131
131
</ div >
132
132
133
- < p > Coming soon...</ p >
133
+ < h3 > Basic Usage</ h3 >
134
+
135
+ < pre > < code class ="html ">
136
+ <div class="grid-stack">
137
+ <div class="grid-stack-item"
138
+ data-gs-x="0" data-gs-y="0"
139
+ data-gs-width="4" data-gs-height="2">
140
+ <div class="grid-stack-item-content"></div>
141
+ </div>
142
+ <div class="grid-stack-item"
143
+ data-gs-x="4" data-gs-y="0"
144
+ data-gs-width="4" data-gs-height="4">
145
+ <div class="grid-stack-item-content"></div>
146
+ </div>
147
+ </div>
148
+
149
+ <script type="text/javascript">
150
+ $(function () {
151
+ var options = {
152
+ cell_height: 80,
153
+ vertical_margin: 10
154
+ };
155
+ $('.grid-stack').gridstack(options);
156
+ });
157
+ </script>
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 >
134
161
135
162
< h3 > Use with knockout.js</ h3 >
136
163
@@ -225,7 +252,7 @@ <h3>Use with knockout.js</h3>
225
252
<!-- Custom Theme JavaScript -->
226
253
< script src ="freelancer/js/freelancer.js "> </ script >
227
254
228
- < script src ="gridstack.js "> </ script >
255
+ < script src ="jquery. gridstack.js "> </ script >
229
256
< script type ="text/javascript ">
230
257
hljs . initHighlightingOnLoad ( ) ;
231
258
$ ( function ( ) {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments