|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
| 3 | + |
3 | 4 | <head> |
4 | | - <meta charset="utf-8"> |
5 | | - <title>Vue Grid Layout Example 1 - Basic Responsive</title> |
6 | | - <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> |
7 | | - <link rel="stylesheet" href="app.css"> |
8 | | - <!--<link rel="stylesheet" href="../dist/vue-grid-layout.css">--> |
| 5 | + <meta charset="utf-8"> |
| 6 | + <title>Vue Grid Layout Example 1 - Basic Responsive</title> |
| 7 | + <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> |
| 8 | + <link rel="stylesheet" href="app.css"> |
| 9 | + <!--<link rel="stylesheet" href="../dist/vue-grid-layout.css">--> |
9 | 10 | </head> |
| 11 | + |
10 | 12 | <body> |
11 | | - <h1>Vue Grid Layout Example 8 - Responsive with predefined layouts</h1> |
| 13 | + <h1>Vue Grid Layout Example 8 - Responsive with predefined layouts</h1> |
12 | 14 |
|
13 | | - <a href="https://github.com/jbaysolutions/vue-grid-layout">View project on Github</a> |
14 | | - <br/> |
15 | | - <a href="07-prevent-collision.html">Previous example: Prevent collision</a> |
| 15 | + <a href="https://github.com/jbaysolutions/vue-grid-layout">View project on Github</a> |
| 16 | + <br /> |
| 17 | + <a href="07-prevent-collision.html">Previous example: Prevent collision</a> |
| 18 | + <br /> |
| 19 | + <a href="09-dynamic-add-remove.html">Next example: Dynamic Add/Remove</a> |
16 | 20 |
|
17 | | - <div id="app" style="width: 100%;"> |
18 | | - <!--<pre>{{ $data | json }}</pre>--> |
19 | | - <div> |
20 | | - <div class="layoutJSON"> |
21 | | - Displayed as <code>[x, y, w, h]</code>: |
22 | | - <div class="columns"> |
23 | | - <div class="layoutItem" v-for="item in layout"> |
24 | | - <b>{{item.i}}</b>: [{{item.x}}, {{item.y}}, {{item.w}}, {{item.h}}] |
25 | | - </div> |
26 | | - </div> |
27 | | - </div> |
| 21 | + <div id="app" style="width: 100%;"> |
| 22 | + <!--<pre>{{ $data | json }}</pre>--> |
| 23 | + <div> |
| 24 | + <div class="layoutJSON"> |
| 25 | + Displayed as <code>[x, y, w, h]</code>: |
| 26 | + <div class="columns"> |
| 27 | + <div class="layoutItem" v-for="item in layout"> |
| 28 | + <b>{{item.i}}</b>: [{{item.x}}, {{item.y}}, {{item.w}}, {{item.h}}] |
| 29 | + </div> |
28 | 30 | </div> |
29 | | - <div id="content"> |
30 | | - <!--<button @click="decreaseWidth">Decrease Width</button> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <div id="content"> |
| 34 | + <!--<button @click="decreaseWidth">Decrease Width</button> |
31 | 35 | <button @click="increaseWidth">Increase Width</button> |
32 | 36 | <button @click="addItem">Add an item</button>--> |
33 | | - <input type="checkbox" v-model="draggable"/> Draggable |
34 | | - <input type="checkbox" v-model="resizable"/> Resizable |
35 | | - <input type="checkbox" v-model="responsive"/> Responsive |
36 | | - <br/> |
37 | | - <grid-layout :layout.sync="layout" |
38 | | - :responsive-layouts="layouts" |
39 | | - :col-num="12" |
40 | | - :row-height="30" |
41 | | - :is-draggable="draggable" |
42 | | - :is-resizable="resizable" |
43 | | - :vertical-compact="true" |
44 | | - :use-css-transforms="true" |
45 | | - :responsive="responsive" |
46 | | - @breakpoint-changed="breakpointChangedEvent" |
47 | | - > |
48 | | - <grid-item v-for="item in layout" |
49 | | - :x="item.x" |
50 | | - :y="item.y" |
51 | | - :w="item.w" |
52 | | - :h="item.h" |
53 | | - :i="item.i" |
54 | | - > |
55 | | - <span class="text">{{item.i}}</span> |
56 | | - </grid-item> |
57 | | - </grid-layout> |
58 | | - </div> |
59 | | - |
| 37 | + <input type="checkbox" v-model="draggable" /> Draggable |
| 38 | + <input type="checkbox" v-model="resizable" /> Resizable |
| 39 | + <input type="checkbox" v-model="responsive" /> Responsive |
| 40 | + <br /> |
| 41 | + <grid-layout :layout.sync="layout" :responsive-layouts="layouts" :col-num="12" :row-height="30" |
| 42 | + :is-draggable="draggable" :is-resizable="resizable" :vertical-compact="true" :use-css-transforms="true" |
| 43 | + :responsive="responsive" @breakpoint-changed="breakpointChangedEvent"> |
| 44 | + <grid-item v-for="item in layout" :x="item.x" :y="item.y" :w="item.w" :h="item.h" :i="item.i"> |
| 45 | + <span class="text">{{item.i}}</span> |
| 46 | + </grid-item> |
| 47 | + </grid-layout> |
60 | 48 | </div> |
61 | | - <script src="vue.min.js"></script> |
62 | | - <script src="../dist/vue-grid-layout.umd.min.js"></script> |
63 | | - <script src="08-responsive-predefined-layouts.js"></script> |
| 49 | + |
| 50 | + </div> |
| 51 | + <script src="vue.min.js"></script> |
| 52 | + <script src="../dist/vue-grid-layout.umd.min.js"></script> |
| 53 | + <script src="08-responsive-predefined-layouts.js"></script> |
64 | 54 | </body> |
| 55 | + |
65 | 56 | </html> |
0 commit comments