Mileage Input Widget
Component Detail
User Interface
low complexity
mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Dedicated numeric input widget for registering kilometer-based travel reimbursement. Only rendered when the mileage expense type is selected. Applies numeric formatting, unit labeling, and inline validation against allowed mileage ranges.
mileage-input-widget
Responsibilities
- Render a numeric input field with km unit label
- Validate entered distance against configured minimum and maximum thresholds
- Provide a pre-filled default value when applicable
- Expose formatted and raw value to the parent screen
Interfaces
setValue(km)
getValue()
validate()
setDefault(km)
reset()
onValueChanged(callback)