Skip to main content
Version: 1.0.0

ListFormDecimalNumber

@spartanfx/react v1.0.0


@spartanfx/react / ListFormDecimalNumber

Variable: ListFormDecimalNumber

const ListFormDecimalNumber: 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 numberOfDecimalPlaces digits.
  • Converts between string and number formats internally to avoid float rounding issues.
  • Integrates with form state via the formStateKey.