From d75026bef72394ce3d2c021d94f5b33a9cfca10b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 20 Jul 2021 15:54:41 +0800 Subject: [PATCH] Changed docs/json/roodata.jsondocs/src/Roo_bootstrap_panel_Content.js.htmldocs/symbols/Roo.bootstrap.panel.Content.jsondocs/symbols/Roo.bootstrap.panel.Grid.jsondocs/symbols/Roo.bootstrap.panel.Nest.json --- docs/json/roodata.json | 21 ++++++++++++++++ docs/src/Roo_bootstrap_panel_Content.js.html | 20 +++++++++++++++- docs/symbols/Roo.bootstrap.panel.Content.json | 24 +++++++++++++++++++ docs/symbols/Roo.bootstrap.panel.Grid.json | 24 +++++++++++++++++++ docs/symbols/Roo.bootstrap.panel.Nest.json | 24 +++++++++++++++++++ 5 files changed, 112 insertions(+), 1 deletion(-) diff --git a/docs/json/roodata.json b/docs/json/roodata.json index a1a79b1578..2a959abc4f 100644 --- a/docs/json/roodata.json +++ b/docs/json/roodata.json @@ -67504,6 +67504,13 @@ "desc" : "Fires when this panel is resized if fitToFrame is true.", "sig" : "function (_self, width, height)\n{\n\n}", "memberOf" : "" + }, + { + "name" : "scroll", + "type" : "function", + "desc" : "Fires when this content is scrolled", + "sig" : "function (_self, scrollEvent)\n{\n\n}", + "memberOf" : "" } ], "methods" : [ @@ -67850,6 +67857,13 @@ "desc" : "Fires when this panel is resized if fitToFrame is true.", "sig" : "function (_self, width, height)\n{\n\n}", "memberOf" : "Roo.bootstrap.panel.Content" + }, + { + "name" : "scroll", + "type" : "function", + "desc" : "Fires when this content is scrolled", + "sig" : "function (_self, scrollEvent)\n{\n\n}", + "memberOf" : "Roo.bootstrap.panel.Content" } ], "methods" : [ @@ -68198,6 +68212,13 @@ "desc" : "Fires when this panel is resized if fitToFrame is true.", "sig" : "function (_self, width, height)\n{\n\n}", "memberOf" : "Roo.bootstrap.panel.Content" + }, + { + "name" : "scroll", + "type" : "function", + "desc" : "Fires when this content is scrolled", + "sig" : "function (_self, scrollEvent)\n{\n\n}", + "memberOf" : "Roo.bootstrap.panel.Content" } ], "methods" : [ diff --git a/docs/src/Roo_bootstrap_panel_Content.js.html b/docs/src/Roo_bootstrap_panel_Content.js.html index 8b3677ea6e..159500c6dd 100644 --- a/docs/src/Roo_bootstrap_panel_Content.js.html +++ b/docs/src/Roo_bootstrap_panel_Content.js.html @@ -172,7 +172,15 @@ * Fires when this tab is created * @param {Roo.ContentPanel} this */ - "render" : true + "render" : true, + + /** + * @event scroll + * Fires when this content is scrolled + * @param {Roo.ContentPanel} this + * @param {Event} scrollEvent + */ + "scroll" : true @@ -183,6 +191,7 @@ if(this.autoScroll && !this.iframe){ this.resizeEl.setStyle("overflow", "auto"); + this.resizeEl.on('scroll', this.onScroll, this); } else { // fix randome scrolling //this.el.on('scroll', function() { @@ -222,6 +231,9 @@ iframe : false, iframeEl : false, + /* Resize Element - use this to work out scroll etc. */ + resizeEl : false, + setRegion : function(region){ this.region = region; this.setActiveClass(region && !this.background); @@ -531,6 +543,12 @@ layout.addxtype({ getChildContainer: function () { return this.getEl(); + }, + + + onScroll : function(e) + { + this.fireEvent('scroll', this, e); } diff --git a/docs/symbols/Roo.bootstrap.panel.Content.json b/docs/symbols/Roo.bootstrap.panel.Content.json index 5137ce3a05..4210fa5f0a 100644 --- a/docs/symbols/Roo.bootstrap.panel.Content.json +++ b/docs/symbols/Roo.bootstrap.panel.Content.json @@ -860,6 +860,30 @@ } ], "returns" : [] + }, + { + "name" : "scroll", + "desc" : "Fires when this content is scrolled", + "memberOf" : "Roo.bootstrap.panel.Content", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + }, + { + "name" : "scrollEvent", + "type" : "Event", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [] } ] } \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.panel.Grid.json b/docs/symbols/Roo.bootstrap.panel.Grid.json index ed9760de01..4428ad0fe9 100644 --- a/docs/symbols/Roo.bootstrap.panel.Grid.json +++ b/docs/symbols/Roo.bootstrap.panel.Grid.json @@ -870,6 +870,30 @@ } ], "returns" : [] + }, + { + "name" : "scroll", + "desc" : "Fires when this content is scrolled", + "memberOf" : "Roo.bootstrap.panel.Content", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + }, + { + "name" : "scrollEvent", + "type" : "Event", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [] } ] } \ No newline at end of file diff --git a/docs/symbols/Roo.bootstrap.panel.Nest.json b/docs/symbols/Roo.bootstrap.panel.Nest.json index 7f8ab6dd9b..ef396f7c12 100644 --- a/docs/symbols/Roo.bootstrap.panel.Nest.json +++ b/docs/symbols/Roo.bootstrap.panel.Nest.json @@ -890,6 +890,30 @@ } ], "returns" : [] + }, + { + "name" : "scroll", + "desc" : "Fires when this content is scrolled", + "memberOf" : "Roo.bootstrap.panel.Content", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.ContentPanel", + "desc" : "", + "isOptional" : false + }, + { + "name" : "scrollEvent", + "type" : "Event", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [] } ] } \ No newline at end of file -- 2.39.2