Skip to content

Commit 755973d

Browse files
committed
Add page size changed event
1 parent 7e37561 commit 755973d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Build/CommonAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("3.1.3")]
19-
[assembly: AssemblyFileVersion("3.1.3")]
18+
[assembly: AssemblyVersion("3.2.0")]
19+
[assembly: AssemblyFileVersion("3.2.0")]
2020
//[assembly: AssemblyInformationalVersion("2.5-filters")]

Griddly/Scripts/griddly.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@
790790
value = 1000;
791791

792792
this.options.pageNumber = Math.floor(this.options.pageNumber * this.options.pageSize / value);
793-
this.options.pageSize = value;
793+
this.pageSize(value);
794794

795795
this.refresh();
796796
}, this));
@@ -1854,7 +1854,16 @@
18541854

18551855
pageSize: function (pageSize)
18561856
{
1857+
var originalSize = this.options.pageSize;
1858+
18571859
this.options.pageSize = pageSize;
1860+
1861+
this.triggerOrQueue(this.$element, "pagesizechanged.griddly",
1862+
{
1863+
originalSize: originalSize,
1864+
pageSize: pageSize
1865+
});
1866+
18581867
// TODO: refresh auto?
18591868
},
18601869

0 commit comments

Comments
 (0)