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
Record<string,unknown>
Indexable
[key: string]: unknown
Properties
code?
optionalcode:string
Configuration code for this input option. Used in generating the complete product code when this option has a value.
decimalPlaces?
optionaldecimalPlaces:number
Number of decimal places to allow in numerical inputs. Controls precision for decimal numbers.
max?
optionalmax:number
Maximum allowed value for numerical inputs. Sets an upper bound for acceptable values.
min?
optionalmin:number
Minimum allowed value for numerical inputs. Sets a lower bound for acceptable values.
priceCode?
optionalpriceCode:string
Code used for price calculations related to this input option. This code is matched against price lists to determine any additional charges.
regexExpression?
optionalregexExpression:string
Regular expression pattern for validating input. Ensures user input matches required format or constraints.
validationMessage?
optionalvalidationMessage:string
Custom message to display when validation fails. Provides user-friendly explanation of input requirements.
value?
optionalvalue:string
Current value of the input field. Contains the user-entered text or number.
visibilityCode?
optionalvisibilityCode:string
Visibility code that determines when this input option is available. Used for conditional display based on other selected options.