Skip to content

Commit 2848b0a

Browse files
authored
Merge pull request #3342 from adumesny/master
fix responsive demos to update text live
2 parents 43770f5 + 7300b68 commit 2848b0a

32 files changed

Lines changed: 56 additions & 39 deletions

angular/doc/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GridStack Angular Library v13.1.1
1+
# GridStack Angular Library v13.1.2
22

33
## Modules
44

angular/projects/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack-angular",
3-
"version": "13.1.1",
3+
"version": "13.1.2",
44
"peerDependencies": {
55
"@angular/common": ">=14",
66
"@angular/core": ">=14"

angular/projects/lib/src/lib/base-widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 13.1.1
2+
* gridstack-item.component.ts 13.1.2
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 13.1.1
2+
* gridstack-item.component.ts 13.1.2
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.component.ts 13.1.1
2+
* gridstack.component.ts 13.1.2
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.component.ts 13.1.1
2+
* gridstack.component.ts 13.1.2
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 13.1.1
2+
* gridstack-item.component.ts 13.1.2
33
* Copyright (c) 2025 Alain Dumesny - see GridStack root license
44
*/
55

angular/yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,7 @@ copy-webpack-plugin@11.0.0:
27742774
dependencies:
27752775
fast-glob "^3.2.11"
27762776
glob-parent "^6.0.1"
2777-
globby "^13.1.1"
2777+
globby "^13.1.2"
27782778
normalize-path "^3.0.0"
27792779
schema-utils "^4.0.0"
27802780
serialize-javascript "^6.0.0"
@@ -3849,7 +3849,7 @@ globals@^11.1.0:
38493849
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
38503850
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
38513851

3852-
globby@^13.1.1:
3852+
globby@^13.1.2:
38533853
version "13.1.4"
38543854
resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.4.tgz#2f91c116066bcec152465ba36e5caa4a13c01317"
38553855
integrity sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==

demo/responsive.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ <h1>Responsive: by column size</h1>
5757
columnWidth: 100, // wanted width
5858
},
5959
children: items,
60-
float: true })
61-
.on('change', (ev, gsItems) => text.innerHTML = grid.getColumn());
62-
text.innerHTML = grid.getColumn();
60+
float: true });
61+
function updateText() {
62+
text.innerHTML = grid.getColumn();
63+
}
64+
grid.on('change resizecontent', updateText);
65+
updateText();
6366
</script>
6467
</body>
6568
</html>

demo/responsive_break.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ <h1>Responsive: using breakpoint</h1>
5757
breakpoints: [{w:700, c:1},{w:850, c:3},{w:950, c:6},{w:1100, c:8}]
5858
},
5959
children: items,
60-
float: true })
61-
.on('change', (ev, gsItems) => text.innerHTML = grid.getColumn());
62-
text.innerHTML = grid.getColumn();
60+
float: true });
61+
function updateText() {
62+
text.innerHTML = grid.getColumn();
63+
}
64+
grid.on('change resizecontent', updateText);
65+
updateText();
6366
</script>
6467
</body>
6568
</html>

0 commit comments

Comments
 (0)