ListFormDecimalNumber
@spartanfx/react / ListFormDecimalNumber
Variable: ListFormDecimalNumber
constListFormDecimalNumber:React.FunctionComponent<IListFormDecimalNumberProps>
A React component that renders a decimal number input field for SharePoint list forms.
This field uses a string input to support formatting and validation for decimal values, and synchronizes the value with the form state as a number.
Param
Props of type IListFormDecimalNumberProps
Returns
A styled Fluent UI TextField bound to the SharePoint list form context.
Remarks
- Only allows valid decimal strings with up to
numberOfDecimalPlacesdigits. - Converts between string and number formats internally to avoid float rounding issues.
- Integrates with form state via the
formStateKey.