Toll & Parking Input Widget
Component Detail
User Interface
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Amount input widget for toll and parking expenses, rendered conditionally based on the selected expense type. Supports currency formatting, optional receipt attachment prompt for amounts exceeding the configured threshold, and supports both toll and parking variants through a shared field layout.
toll-parking-input-widget
Responsibilities
- Render a currency amount input with NOK formatting
- Show a receipt upload prompt when the entered amount exceeds the configured threshold
- Validate that amount is positive and within allowed range
- Expose validated amount value to parent screen
Interfaces
setValue(amount)
getValue()
validate()
setReceiptThreshold(nok)
isReceiptRequired()
reset()
onValueChanged(callback)