CaUdc
The Unifaun Delivery Checkout widget
SASS-path: ./styles/components/molecules/ca-udc.scss
Props
Name | Description | Type | Required | Default |
---|
shippingData | JSON string from the API | String | false | null |
zip | The current zip code / postal code | String | true | - |
parentLoading | If parent step is loading | Boolean | false | false |
dataIsSet | Pass true if UDC data has been set in the checkout | Boolean | true | false |
Events
Event Name | Description | Parameters |
---|
validation | Validation has been made | valid (Boolean) |
init | Initiation is triggered | Zip (String) |
changed | A change has been made | Selected option ID, pickup point, delivery data (Object) |
Methods
Method | Description | Parameters |
---|
init | Initiate the widget | - |
update | Updates the widget with new data | - |
disable | Disables the widget | - |
enable | Enables the widget and handles feedback | - |
changed | The callback function for when changes are made in the widget | - |
Computed
Computed | Type | Description | From Store |
---|
valid | Boolean | Is all input valid? | No |