Insert only numbers in a cell

Tags: #<Tag:0x00007efc6449aa90>

insert only numbers and decimal separator and don´t what the user to insert alpha characters. is there any property in the HT i can use or how can i solve this problem ?

Hi @dit
Currently you can:

  1. mark as invalid a cell that is not a number (add type: "numeric") it will accept the value but the cell will be provided with a red backgrond and a htInvalid class,
  2. turn off an acceptance of a change if the value has other char than desired (by the beforeChange callback). Then the previous value is displayed,
  3. prevent a certain keydown (by the beforeKeyDown callback combined with event.stopImmediatePropagation() for a certain key) then the blocked char won’t even appear in your cell.