summaryrefslogtreecommitdiffstats
path: root/slick.editors.js
Commit message (Collapse)AuthorAgeFilesLines
* Update slick.editors.jsjbthoma2013-08-071-1/+1
|
* Update slick.editors.jsjbthoma2013-08-071-3/+3
| | | Jquery 1.6+ requires use of prop instead of attr to manipulate checked state.
* incorporated suggestions by mleibmanWilcley Lima2013-03-051-13/+3
|
* Improved Checkbox editor ValueChanged behavior.Wilcley Lima2013-03-041-2/+12
| | | | Checkbox editor was firing onCellChange event even when there was no change. This fixes that behavior and also returns a boolean on serialzeValue instead of the previous "checked" or undefined.
* LongTextEditor should use args.gridRafael Bodill2012-07-311-2/+2
|
* Fixed indenting in editors.Michael Leibman2012-01-231-437/+437
|
* Corrected a copy'n'paste error.Michael Leibman2012-01-231-1/+1
|
* Formatter & Editor cleanup.Michael Leibman2012-01-231-146/+32
| | | | | | | | | - Split up formatters into a separate file. - Moved both formatters and editors into Slick.Formatters.* and Slick.Editors.* namespaces. Renamed some for clarity. - Removed obscure unused formatters from old examples. - Made the default formatter escape HTML since that seems to be the more common expectation (issue #267).
* More cleanup.Michael Leibman2012-01-171-45/+45
|
* Reformatted code.Michael Leibman2012-01-171-609/+619
|
* Fixed the onDragInit event handlers interfering with each other on click.mleibman2010-11-261-0/+8
| | | | | 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.
* - FIXED: corrected variable reference in YesNoSelectCellEditormleibman2010-10-071-3/+3
|
* *** BREAKING CHANGES ***unknown2010-06-101-57/+70
| | | | | | | | | | | | | | | | | | | | | | | | | BREAKING Editor API changes: - REMOVED: .saveValue(item) method - ADDED: .serializeValue() method - ADDED: .applyValue(item,serializedValue) method These changes have been made to make the interface more flexible and to support functionality similar to what "setValueHandler" column option used to offer. This is especially useful for implementing remote edits using AJAX and undo/redo. IMPORTANT: .applyValue(item,serializedValue) will be called after the editor is destroyed - treat this method as static Grid changes: - CHANGED: the grid now calls .loadValue(item) on the editor during construction so you no longer need to do it in the .init() - ADDED: new "editCommandHandler" grid option: options.editCommandHandler(item,column,editCommand) When specified, the handler will be called instead of immediately applying the changes. The client can the call editCommand.execute() to apply the changes. editCommand: row - the row of the cell that has been edited cell - the column of the cell that has been edited editor - cell editor prevSerializedValue - the serialized value prior to user edit serializedValue - the serialized value after the user edit execute() - a delegate to apply the changes and update the row undo() - a delegate to undo the changes and update the row
* - FIXED: TextCellEditor handling of new rowsunknown2010-06-091-1/+1
|
* *** BREAKING CHANGES ***mleibman2010-06-091-162/+63
| | | | | | | | | | | | | | | | | The cell editor interface has been changed to allow for more flexible implementations. Instead of working with a single value, the editors can now work on multiple fields at once. Formatters can already combine data from multiple fields into one cell; this enables us to write editors that can work with them. To migrate your existing editors, remove .getValue() and .setValue(value) methods and implement .loadValue(item) and .saveValue(item) (should be a trivial migration). The "value" property of the "args" param passed to the editor constructor has also been removed since it was error-prone. In most cases you can replace that by "args.item[args.column.field]". One side-effect of this design change is that the "setValueHandler" column option is no longer supported. The same functionality can be implemented via a custom editor/wrapper, "onCellChange" event, or a combination of both. The signature of "onAddNewRow" was also changed to take in an empty object to which the field value was saved via editor.saveValue({}), and a column definition. - REMOVED: "setValueHandler" column option - REMOVED: "value" property on cell editor "args" - ADDED: example 3a to demonstrate compound cell editors Other changes: - FIXED: onValidationError being fired twice when autoEdit is on - REMOVED: TaskNameCellEditor as it was not being used
* *** BREAKING CHANGES ***mleibman2010-06-081-502/+547
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Cell editor interface has been changed! Cell editors can now be attached to document body (or any other element) and not just the cell container. This lets us create editor controls that get outside of the grid boundary. The grid provides ways of updating editor position and visibility as the grid and any other scroll parents and scrolled. If the editor implements .position(box), .show() and hide(), those methods will be called whenever the position or visibility of the cell changes. The box parameter has top, left, right, bottom, width, height and visible properties. The position is calculated at a document body level taking into consideration all scroll and offset parents. Note that since the detached editors are no longer children of the edited cell, keyboard events will not bubble up, so make sure you handle things like Esc, Enter, Tab, etc. using the provided callbacks or grid methods. Cell editors now recieve just one "args" param: { grid: a reference to SlickGrid instance, gridPosition: a box with grid position and dimensions, position: a box with edited cell position and dimensions, container: edited cell, column: column definition, value: current cell value, item: data context, commitChanges: a callback to commit changes, cancelChanges: a callback to cancel changes } Take a look at the new LongTextCellEditor for a sample implementation. Other changes: - ADDED: new methods - navigatePrev(), navigateNext(), navigateLeft(), navigateRight(), navigateUp(), navigateDown() - FIXED: pressing Enter on a cell in read mode in autoEdit grid loads the editor for the next row - FIXED: removeRows() and removeAllRows() now call fire onBeforeEditorDestroy event when removing a row with an active editor - ADDED: LongTextCellEditor and autoEdit options to example #3 - FIXED: JS error on adding new rows in example #4
* FIXED: Issue 25 - Can't use left & right arrow keys in cell editorsmleibman2010-05-181-1/+23
| | | | Sample text cell editors now control which keys should not be propagated.
* switching back to $ since it is now safely within an anonymous ↵Brandon Aaron2010-05-101-14/+14
| | | | self-executing function
* clean up slick.editors.js formatting and how the editors are exposed to the ↵Brandon Aaron2010-05-101-459/+456
| | | | window
* support jQuery.noConflict for hostile environments towards the $Brandon Aaron2010-05-101-14/+14
|
* jQuery and $ protection project is complete: put editor funcsBob Schmertz2010-05-101-34/+42
| | | | | inside closure and remove remaining references to global jQuery inside closures
* Increased horizontal padding on cells in the default theme.mleibman2010-02-121-1/+1
| | | | New drag handle image.
* Remove trailing whitespace in slick.* filesMilan Gardian2010-01-301-13/+13
|
* Code/CSS cleanup (thanks WebIDE!).mleibman2009-12-261-240/+240
|
* CRLF -> LFmleibman2009-12-171-622/+622
|
* Implemented an IntegerCellEditor. The current variation does accept ↵michael.leibman2009-12-151-0/+58
| | | | decimals and just rounds them.
* Improvements to AJAX example:michael.leibman2009-11-281-1/+1
| | | | | | | | | - Abortable JSONP requests. - Better "buffering" indicator. - Sorting support (Digg only supports sorting on diggs for the feed I'm using). plus some other minor stuff.
* Fixed a layout issue in the graphical percent complete editor.michael.leibman2009-11-251-1/+1
|
* (no commit message)michael.leibman2009-10-091-1/+1
|
* Moved examples and tests into separate folders.michael.leibman@gmail.com2009-04-101-10/+6
| | | | Some performance optimizations in the rendering function; needs more work.
* (no commit message)michael.leibman2009-03-171-0/+1
|
* Initial checkin.michael.leibman2009-03-081-0/+567