Project

General

Profile

Feature #1084

Feature #1080: Display selector for fields with a defined type

Time selection dialog for time fields

Added by Luke Murphey over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/27/2015
Due date:
% Done:

100%

History

#1 Updated by Luke Murphey over 8 years ago

Using smalot/bootstrap-datetimepicker 2.3.5:
https://github.com/smalot/bootstrap-datetimepicker/releases

#3 Updated by Luke Murphey over 8 years ago

  • Target version changed from 2.0 to Plus_2

#5 Updated by Luke Murphey about 8 years ago

  • Target version changed from Plus_2 to Plus_4

#6 Updated by Luke Murphey almost 8 years ago

  • Target version changed from Plus_4 to Plus_2

#7 Updated by Luke Murphey almost 8 years ago

  • Target version changed from Plus_2 to 2.3

#10 Updated by Luke Murphey almost 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 almost 8 years ago

It turns out that the dates need to be a number.

#12 Updated by Luke Murphey almost 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 almost 8 years ago

Might need to do this in makeRowJSON()

#14 Updated by Luke Murphey almost 8 years ago

This would make a good UI for selecting datetimes: https://chmln.github.io/flatpickr/

#15 Updated by Luke Murphey almost 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)

#17 Updated by Luke Murphey almost 8 years ago

  1. Use basic renderer
    1. Doesn't do time format correction
    2. Editing shows original value (the number)
  2. Use custom time renderer
    1. Original values are rendered, prepare doesn't seem to get called on the initial load
  3. Use time renderer and renderer override (http://jsfiddle.net/p7KwM/)

#18 Updated by Luke Murphey almost 8 years ago

I have option two is working, but the format is still a number when editing.

#19 Updated by Luke Murphey almost 8 years ago

Calling this.handsontable.validateCells(); does change the format. However, it also resaves the rows.

#20 Updated by Luke Murphey almost 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF