File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -64,21 +64,21 @@ Usage
64
64
[ ![ NPM version] ( https://img.shields.io/npm/v/gridstack.svg )] ( https://www.npmjs.com/package/gridstack )
65
65
66
66
``` bash
67
- yarn install gridstack
67
+ yarn add gridstack
68
68
or
69
69
npm install --save gridstack
70
70
```
71
71
72
72
## Include
73
73
74
- * local :
74
+ * after you install :
75
75
76
76
``` html
77
- <link rel =" stylesheet" href =" gridstack.min.css" />
78
- <script src =" gridstack.all.js" ></script >
77
+ <link rel =" stylesheet" href =" node_modules/gridstack/dist/ gridstack.min.css" />
78
+ <script src =" node_modules/gridstack/dist/ gridstack.all.js" ></script >
79
79
```
80
80
81
- * Using CDN (minimized):
81
+ * or using CDN (minimized):
82
82
83
83
``` html
84
84
<link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/gridstack@1.1.2/dist/gridstack.min.css" />
@@ -92,6 +92,11 @@ if you need to debug, look at the git demo/ examples for non min includes.
92
92
creating items dynamically...
93
93
94
94
``` html
95
+ <style type =" text/css" >
96
+ .grid-stack { background : #FAFAD2 ; }
97
+ .grid-stack-item-content { background-color : #18bc9c ; }
98
+ </style >
99
+
95
100
<div class =" grid-stack" ></div >
96
101
97
102
<script type =" text/javascript" >
@@ -103,6 +108,11 @@ creating items dynamically...
103
108
... or DOM created items
104
109
105
110
``` html
111
+ <style type =" text/css" >
112
+ .grid-stack { background : #FAFAD2 ; }
113
+ .grid-stack-item-content { background-color : #18bc9c ; }
114
+ </style >
115
+
106
116
<div class =" grid-stack" >
107
117
<div class =" grid-stack-item" >
108
118
<div class =" grid-stack-item-content" >Item 1</div >
Original file line number Diff line number Diff line change 24
24
}
25
25
26
26
.grid-stack {
27
- background : lightgoldenrodyellow ;
27
+ background : # FAFAD2 ;
28
28
}
29
29
30
30
.grid-stack-item-content {
You can’t perform that action at this time.
0 commit comments