edit-number
Overview
This type of editable cell only accepts number values. Its output is also a value which is cast back to a number. newValue will therefore always be a valid number (or null
if nothing was entered).
In addition to the value being casted correctly, this cell type will perform a preliminary validation before firing the on-change
, where it will automatically check that the value entered is a valid number.
Basic Example
<object-table ...>
<column display="{field}">
<edit-number value="$object.field" on-change="$:valueChanged($object, newValue, oldValue)" />
</column>
</object-table>
Standard Attributes
on-change
on-change
value
value
Advanced Attributes
clear-button-visibility
clear-button-visibilityclear-button-visibility
disabled
disabled
Last updated