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 ?
Insert only numbers in a cell
Hi @dit
Currently you can:
- 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 ahtInvalid
class, - 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, - prevent a certain keydown (by the
beforeKeyDown
callback combined withevent.stopImmediatePropagation()
for a certain key) then the blocked char won’t even appear in your cell.