From 788355c4c50221e32a60b5cf515f5e569f3732e4 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 7 Jun 2023 12:51:27 +0800 Subject: [PATCH] add select all to combocheck --- docs/src/Roo_form_ComboCheck.js.html | 21 ++++++++++++++++++--- docs/src/Roo_form_HtmlEditor.js.html | 4 ++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/docs/src/Roo_form_ComboCheck.js.html b/docs/src/Roo_form_ComboCheck.js.html index 7044165453..71c99790f8 100644 --- a/docs/src/Roo_form_ComboCheck.js.html +++ b/docs/src/Roo_form_ComboCheck.js.html @@ -66,11 +66,16 @@ this.view.singleSelect = false; this.view.multiSelect = true; this.view.toggleSelect = true; - this.pageTb.add(new Roo.Toolbar.Fill(), { + this.pageTb.add(new Roo.Toolbar.Fill(),{ + text: 'Select All', + handler: function() { + _t.selectAll(); + } + }, + { text: 'Done', - handler: function() - { + handler: function() { _t.collapse(); } }); @@ -108,7 +113,17 @@ return false; }, + selectAll : function() + { + var sels = []; + this.store.each(function(r,i) { + sels.push(i); + }); + this.view.select(sels); + this.collapse(); + return false; + }, onSelect : function(record, index){ // Roo.log("onselect Called"); diff --git a/docs/src/Roo_form_HtmlEditor.js.html b/docs/src/Roo_form_HtmlEditor.js.html index 7e651fcd0a..705675e692 100644 --- a/docs/src/Roo_form_HtmlEditor.js.html +++ b/docs/src/Roo_form_HtmlEditor.js.html @@ -221,9 +221,9 @@ * Fires when press user pastes into the editor * @param {Roo.HtmlEditorCore} this */ - paste: true, + paste: true - }); + }); this.defaultAutoCreate = { tag: "textarea", style:'width: ' + this.width + 'px;height: ' + this.height + 'px;', -- 2.39.2