edit-number

Overview

To get started, see the introductory guide on editable object-table cells.

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

See edit-text > on-change

value

See edit-text > value

Advanced Attributes

clear-button-visibility

clear-button-visibility

disabled

See edit-text > disabled

Last updated