Feature #1084
Feature #1080: Display selector for fields with a defined type
Time selection dialog for time fields
100%
History
#1 Updated by Luke Murphey about 9 years ago
Using smalot/bootstrap-datetimepicker 2.3.5:
https://github.com/smalot/bootstrap-datetimepicker/releases
#2 Updated by Luke Murphey about 9 years ago
Could use this API for date editing: http://docs.handsontable.com/0.19.0/tutorial-cell-editor.html
#3 Updated by Luke Murphey about 9 years ago
- Target version changed from 2.0 to Plus_2
#4 Updated by Luke Murphey about 9 years ago
Some examples of a custom cell editor:
#5 Updated by Luke Murphey over 8 years ago
- Target version changed from Plus_2 to Plus_4
#6 Updated by Luke Murphey over 8 years ago
- Target version changed from Plus_4 to Plus_2
#7 Updated by Luke Murphey over 8 years ago
- Target version changed from Plus_2 to 2.3
#8 Updated by Luke Murphey over 8 years ago
#9 Updated by Luke Murphey over 8 years ago
Need to figure out if the 'time' format is timestamp or date. See https://docs.mongodb.com/manual/reference/mongodb-extended-json/#bson-data-types-and-associated-representations
#10 Updated by Luke Murphey over 8 years ago
Time
We accept epoch time either as a string or as a number. If it fails to convert, we'll insert the string version.
#11 Updated by Luke Murphey over 8 years ago
It turns out that the dates need to be a number.
#12 Updated by Luke Murphey over 8 years ago
Might be able to convert this via afterChange()
http://docs.handsontable.com/0.15.0/Hooks.html#event:afterChange
#13 Updated by Luke Murphey over 8 years ago
Might need to do this in makeRowJSON()
#14 Updated by Luke Murphey over 8 years ago
This would make a good UI for selecting datetimes: https://chmln.github.io/flatpickr/
#15 Updated by Luke Murphey over 8 years ago
- Handsontable.editors.TextEditor.prepare() doesn't get called when rendering existing rows
- Could do the transformation in the normal lookup renderer but this would mean pulling out the moment.js time renderer (and its time format correction)
#16 Updated by Luke Murphey over 8 years ago
#17 Updated by Luke Murphey over 8 years ago
- Use basic renderer
- Doesn't do time format correction
- Editing shows original value (the number)
- Use custom time renderer
- Original values are rendered, prepare doesn't seem to get called on the initial load
- Use time renderer and renderer override (http://jsfiddle.net/p7KwM/)
#18 Updated by Luke Murphey over 8 years ago
I have option two is working, but the format is still a number when editing.
#19 Updated by Luke Murphey over 8 years ago
Calling this.handsontable.validateCells(); does change the format. However, it also resaves the rows.
#20 Updated by Luke Murphey over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100