From d7182f327a0100466b3897c05453dd2d226dd5cf Mon Sep 17 00:00:00 2001 From: Vlada Skorokhodova <94827090+vladaskorohodova@users.noreply.github.com> Date: Mon, 10 Feb 2025 11:03:41 +0400 Subject: [PATCH] NumberBox: update format (#7050) --- .../10 UI Components/dxNumberBox/1 Configuration/format.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api-reference/10 UI Components/dxNumberBox/1 Configuration/format.md b/api-reference/10 UI Components/dxNumberBox/1 Configuration/format.md index 466c6c0d1c..a855442c70 100644 --- a/api-reference/10 UI Components/dxNumberBox/1 Configuration/format.md +++ b/api-reference/10 UI Components/dxNumberBox/1 Configuration/format.md @@ -120,7 +120,9 @@ The format property can accept the following value types: - Function -A function should apply a custom format to a value and return the formatted value as a string. Functions are useful for advanced formatting. Refer to the following article for more information: [Custom Function](/concepts/Common/Value%20Formatting/10%20Format%20UI%20Component%20Values/30%20Custom%20Function.md '/Documentation/Guide/Common/Value_Formatting/#Format_UI_Component_Values/Custom_Function'). +A function should apply a custom format to a value and return the formatted value as a string. A shortcut for the [formatter](/api-reference/50%20Common/Object%20Structures/format/formatter.md '/Documentation/ApiReference/Common/Object_Structures/Format/#formatter') property. Refer to the following article for more information: [Custom Function](/concepts/Common/Value%20Formatting/10%20Format%20UI%20Component%20Values/30%20Custom%20Function.md '/Documentation/Guide/Common/Value_Formatting/#Format_UI_Component_Values/Custom_Function'). + + [important] If you allow users to edit the formatted value, implement the [parser](/api-reference/50%20Common/Object%20Structures/format/parser.md '/Documentation/ApiReference/Common/Object_Structures/format/#parser') function to convert the value back to a number. - Object Full format configuration. The object structure is shown in the [format](/api-reference/50%20Common/Object%20Structures/format '/Documentation/ApiReference/Common/Object_Structures/format/') API section.