You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: angular/README.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,17 +45,16 @@ import { GridStackOptions } from 'gridstack';
45
45
// sample grid options + items to load...
46
46
publicgridOptions: GridStackOptions= {
47
47
margin: 5,
48
-
float: true,
49
48
children: [ // or call load()/addWidget() with same data
50
49
{x:0, y:0, minW:2, content:'Item 1'},
51
-
{x:1, y:1, content:'Item 2'},
52
-
{x:2, y:2, content:'Item 3'},
50
+
{x:1, y:0, content:'Item 2'},
51
+
{x:0, y:1, content:'Item 3'},
53
52
]
54
53
}
55
54
```
56
55
57
56
# More Complete example
58
-
In this example (build on previous one) will use your actual custom angular components inside each grid item (instead of dummy html content)
57
+
In this example (build on previous one) will use your actual custom angular components inside each grid item (instead of dummy html content) and have per component saved settings as well (using BaseWidget).
0 commit comments