Skip to main content

Interface: InputOption

Configuration for a text or numerical input field option.

InputOption defines how an input field is configured, validated, and processed. This includes validation rules, formatting options, and pricing information for user-entered values that affect the product configuration.

Extends

Indexable

[key: string]: unknown

Properties

code?

optional code: string

Configuration code for this input option. Used in generating the complete product code when this option has a value.


decimalPlaces?

optional decimalPlaces: number

Number of decimal places to allow in numerical inputs. Controls precision for decimal numbers.


max?

optional max: number

Maximum allowed value for numerical inputs. Sets an upper bound for acceptable values.


min?

optional min: number

Minimum allowed value for numerical inputs. Sets a lower bound for acceptable values.


priceCode?

optional priceCode: string

Code used for price calculations related to this input option. This code is matched against price lists to determine any additional charges.


regexExpression?

optional regexExpression: string

Regular expression pattern for validating input. Ensures user input matches required format or constraints.


validationMessage?

optional validationMessage: string

Custom message to display when validation fails. Provides user-friendly explanation of input requirements.


value?

optional value: string

Current value of the input field. Contains the user-entered text or number.


visibilityCode?

optional visibilityCode: string

Visibility code that determines when this input option is available. Used for conditional display based on other selected options.