summaryrefslogtreecommitdiffstats
path: root/slick.editors.js
diff options
context:
space:
mode:
authormleibman <michael.leibman@gmail.com>2010-11-26 20:22:55 -0800
committermleibman <michael.leibman@gmail.com>2010-11-26 20:22:55 -0800
commit17b1bb8f3c43022ee6aec89dcab185cd368b8785 (patch)
treee1897d0d732115e98238a1f74ebb2c844047e111 /slick.editors.js
parentd14636aa3148ceb994e21362521da1af867df341 (diff)
downloadSlickGrid-17b1bb8f3c43022ee6aec89dcab185cd368b8785.zip
SlickGrid-17b1bb8f3c43022ee6aec89dcab185cd368b8785.tar.gz
SlickGrid-17b1bb8f3c43022ee6aec89dcab185cd368b8785.tar.bz2
Fixed the onDragInit event handlers interfering with each other on click.
Added CellRangeSelector and refactored CellSelectionModel to make use of it. Added a sample FormulaEditor cell editor that uses CellRangeSelector to let the user drag-select a range of cells and have them appended to the currently edited cell.
Diffstat (limited to 'slick.editors.js')
-rw-r--r--slick.editors.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/slick.editors.js b/slick.editors.js
index 04bd33d..a458195 100644
--- a/slick.editors.js
+++ b/slick.editors.js
@@ -90,6 +90,14 @@
$input.focus();
};
+ this.getValue = function() {
+ return $input.val();
+ };
+
+ this.setValue = function(val) {
+ $input.val(val);
+ };
+
this.loadValue = function(item) {
defaultValue = item[args.column.field] || "";
$input.val(defaultValue);