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
new cellHeight:'fill' so rows divide the (fixed) grid height
* fix#2583fix#787
* new cellHeight:'fill' so row numbers take entire fixed sized (by the application) grid height, which simulates cellHeight being %, but also aumatically adpate to always fill grid height.
* update cell-height.html demo to show the new option
Copy file name to clipboardExpand all lines: angular/doc/api/gridstack.component.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,7 +221,7 @@ OnInit.ngOnInit
221
221
ngAfterContentInit(): void;
222
222
```
223
223
224
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:272](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L272)
224
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:273](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L273)
225
225
226
226
wait until after all DOM is ready to init gridstack children (after angular ngFor and sub-components run first)
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:280](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L280)
244
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:281](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L281)
245
245
246
246
A callback method that performs custom clean-up, invoked immediately
247
247
before a directive, pipe, or service instance is destroyed.
@@ -262,7 +262,7 @@ OnDestroy.ngOnDestroy
262
262
updateAll(): void;
263
263
```
264
264
265
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:294](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L294)
265
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:295](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L295)
266
266
267
267
called when the TEMPLATE (not recommended) list of items changes - get a list of nodes and
268
268
update the layout accordingly (which will take care of adding/removing items changed by Angular)
@@ -277,7 +277,7 @@ update the layout accordingly (which will take care of adding/removing items cha
277
277
checkEmpty(): void;
278
278
```
279
279
280
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:305](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L305)
280
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:306](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L306)
281
281
282
282
check if the grid is empty, if so show alternative content
283
283
@@ -291,7 +291,7 @@ check if the grid is empty, if so show alternative content
291
291
protectedhookEvents(grid?):void;
292
292
```
293
293
294
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:311](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L311)
294
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:312](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L312)
295
295
296
296
get all known events as easy to use Outputs for convenience
297
297
@@ -311,7 +311,7 @@ get all known events as easy to use Outputs for convenience
311
311
protectedunhookEvents(grid?):void;
312
312
```
313
313
314
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:338](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L338)
314
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:339](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L339)
315
315
316
316
###### Parameters
317
317
@@ -3094,7 +3094,7 @@ function gsCreateNgComponents(
3094
3094
isGrid):undefined|HTMLElement;
3095
3095
```
3096
3096
3097
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:349](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L349)
3097
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:350](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L350)
3098
3098
3099
3099
can be used when a new item needs to be created, which we do as a Angular component, or deleted (skip)
3100
3100
@@ -3119,7 +3119,7 @@ can be used when a new item needs to be created, which we do as a Angular compon
3119
3119
function gsSaveAdditionalNgInfo(n, w):void;
3120
3120
```
3121
3121
3122
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:444](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L444)
3122
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:445](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L445)
3123
3123
3124
3124
called for each item in the grid - check if additional information needs to be saved.
3125
3125
Note: since this is options minus gridstack protected members using Utils.removeInternalForSave(),
@@ -3145,7 +3145,7 @@ using BaseWidget.serialize()
3145
3145
function gsUpdateNgComponents(n):void;
3146
3146
```
3147
3147
3148
-
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:463](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L463)
3148
+
Defined in: [angular/projects/lib/src/lib/gridstack.component.ts:464](https://github.com/adumesny/gridstack.js/blob/master/angular/projects/lib/src/lib/gridstack.component.ts#L464)
3149
3149
3150
3150
track when widgeta re updated (rather than created) to make sure we de-serialize them as well
Copy file name to clipboardExpand all lines: demo/cell-height.html
+46-13Lines changed: 46 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,46 @@
9
9
<linkrel="stylesheet" href="demo.css"/>
10
10
<scriptsrc="../dist/gridstack-all.js"></script>
11
11
<styletype="text/css">
12
+
html,body {
13
+
width:100%;
14
+
height:100%;
15
+
margin:0;
16
+
display: flex;
17
+
}
12
18
.container {
13
19
background-color: lightblue;
14
20
width:100%;
15
-
height:800px;
21
+
flex:1;
22
+
max-height:800px; /* test grid not filling entire page */
23
+
display: flex;
24
+
flex-direction: column;
16
25
}
17
26
</style>
18
-
19
27
</head>
20
28
<body>
21
29
<divclass="container">
22
30
<h1>Cell Height grid options demo</h1>
23
-
<p>sample showing the different cellHeight options and what happens when you resize the window</p>
31
+
<p>sample showing the different cellHeight options and what happens when you resize the window<br>
32
+
<b>New:</b> v14.x <i>cellHeight:'fill'</i> (rows divide the <b>grid height</b> which MUST be set by the app to something fixed as GS won't set a size)</p>
0 commit comments