The hierarchical configuration path using colon-separated notation.
This path identifies the specific configuration bean that contains the target attribute. Must match the path used by the parent ConfigBeanModel.
// Hardware component configuration
path: 'assembly:core:board:micro:pump:S4'
// System-level configuration
path: 'system:app'
// Service configuration
path: 'kos:service:CANPumpMgr'
The specific attribute name within the configuration bean.
This identifies which property within the configuration bean this KosConfigProperty instance should access and manage.
attribute: 'nominalRate' // For pump flow rates
attribute: 'targetTemperature' // For temperature settings
attribute: 'enabled' // For boolean flags
attribute: 'retryCount' // For numeric counters
Unique identifier for the config property instance
Readonly schemaThe data type of this property as defined in the backend schema
Updates the property value and persists it to the backend. Automatically handles unit conversion from display units to backend storage units.
The new value in display units
Optional converterOptional unit conversion configuration.
When provided, enables automatic conversion between backend storage units and regional display units. If omitted, no unit conversion is performed.
Optional from?: UnitConverterOptional to?: UnitConverterconverter: {
from: { unit: 'kelvin', system: 'si' },
to: { system: 'auto' } // Auto-detect regional system
}
Optional formatterOptional display formatting configuration.
Configures how numeric values are formatted for display, including decimal places, units, and locale-specific formatting rules.
formatter: {
style: 'unit',
unit: 'celsius',
maximumFractionDigits: 1,
minimumFractionDigits: 1
}
Optional optionsOptional predefined options for enumerated properties.
Provides a list of valid values for configuration properties that have discrete options rather than continuous values.
optionsExpander: [
{ label: 'Low', value: 'low' },
{ label: 'Medium', value: 'medium' },
{ label: 'High', value: 'high' }
]
Optional serviceOptional custom service base path for configuration endpoints
Optional Readonly unitThe unit of measure for the property after regional conversion (e.g., "°F", "mL/s")
Optional Readonly valueThe property value converted to regional units
Optional Readonly rawThe raw backend value before any unit conversion (typically SI units)
Optional Readonly significantThe property value with appropriate decimal precision for display
Optional Readonly previousThe previous value before the last update
Optional Readonly displayFormatted string representation of the value with units and localization
Optional Readonly displayDisplay configuration options from the backend schema
Optional Readonly optionsAvailable enumerated options for this property (if applicable)
Optional Readonly schemaOptional format specifier from the backend schema (e.g., "s", "ml", "drt")
Individual configuration property with automatic unit conversion and regional formatting.
Provides type-safe access to specific configuration attributes with built-in unit conversion between backend storage units (typically SI) and regional display units.
Example: Basic Usage