# Editable number

## Overview

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2Fbrw199eUGavRWs34NpNE%2FCleanShot%202025-06-24%20at%2015.51.22%402x-min.png?alt=media&#x26;token=87406c20-0a05-41f9-9a21-1c13f6cf907b" alt=""><figcaption></figcaption></figure>

### Properties

<table><thead><tr><th width="126.7578125">Name</th><th width="202.4140625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td><td>Component name</td></tr><tr><td><code>value</code></td><td><code>string/number | null</code></td><td>Current value of the component</td></tr><tr><td><code>valid</code></td><td><code>boolean</code></td><td>Indicates whether the component is valid</td></tr><tr><td><code>disabled</code></td><td><code>boolean</code></td><td>Indicates whether the component is disabled</td></tr><tr><td><code>validating</code></td><td><code>boolean</code></td><td>Indicates if the component is validating</td></tr></tbody></table>

### Methods

<table><thead><tr><th width="155.2109375">Name</th><th>Parameters</th><th width="106.66015625">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setValue</code></td><td><code>value: string | number</code></td><td><code>void</code></td><td>Set component value</td></tr><tr><td><code>setDisabled</code></td><td><code>disabled: boolean</code></td><td><code>void</code></td><td>Disable or enable the component</td></tr><tr><td><code>reset</code></td><td>–</td><td><code>void</code></td><td>Reset the component to the initial value</td></tr><tr><td><code>focus</code></td><td>–</td><td><code>void</code></td><td>Set focus on the component</td></tr><tr><td><code>validate</code></td><td>–</td><td><code>void</code></td><td>Trigger form validation</td></tr><tr><td><code>resetValidation</code></td><td>–</td><td><code>void</code></td><td>Clear validation errors</td></tr><tr><td><code>setErrors</code></td><td><p><code>errors: string |</code> </p><p><code>string[] | null</code></p></td><td><code>void</code></td><td>Mark the component as invalid and display errors</td></tr><tr><td><code>setRequired</code></td><td><code>required: boolean</code></td><td><code>void</code></td><td>Set component required state</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="182.2109375">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Change</strong></td><td>Triggered when the component's state changes</td></tr><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr><tr><td><strong>On Submit</strong></td><td>Triggered on component's submit</td></tr><tr><td><strong>On Open Editing</strong></td><td>Triggered when Edit mode is ON</td></tr><tr><td><strong>On Close Editing</strong></td><td>Trigerred when Edit mode is OFF</td></tr></tbody></table>

***

{% content-ref url="../number" %}
[number](https://docs.uibakery.io/reference/working-with-components/number)
{% endcontent-ref %}

{% content-ref url="../number-input" %}
[number-input](https://docs.uibakery.io/reference/working-with-components/number-input)
{% endcontent-ref %}
