1.0.10 • Published 2 years ago

vue-widget-mondial-relay v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Captura de pantalla 2021-09-11 a las 17 09 04

Vue Widget Mondial Relay

Mondial Relay Widget https://widget.mondialrelay.com/parcelshop-picker/v4_0/codesamples/Sample-LightImplementation.aspx to Vue

Installation

Using npm

npm i --save vue-widget-mondial-relay

Requirements

Vue 2

Vue 3 ? use the new component -> https://github.com/EduardoMateos/vue3-widget-mondial-relay

Props API

PropsTypeRequiredDefaultDetails
brandStringtrueProvider by Mondial Relay
defaultPostCodeStringfalse59000Default postal Code used for search at loading
defaultCountryStringfalseFRFR, ES, BE, NL, LU, DE, AT
maxResultsIntfalse7Must be less than 20
deliveryModeStringfalse24RStandard 24R, XL 24L, XXL 24X, Drive DRI
allowedCountriesArrayfalse*FR, ES, BE, NL, LU, DE, AT
translationsObjectfalsetexts in spanishdetails in documentation

Translations

Prop: translations

Object example:

        :translations="{
          headerTitle: 'Select your mondial relay ®',
          findCpText: 'CP',
          findCityText: 'City',
          cityNoResults: 'no results',
          btnListMobile: 'List',
          btnMapMobile: 'Map'
        }"

Example

<template>
  <div id="app" style="max-width: 980px; margin: auto">
    <WidgetMondialRelay
        brand="BDTEST  "
        defaultPostCode="59000"
        defaultCountry="FR"
        maxResults="7"
        deliveryMode="24R"
        @select="setParcelSelected($event)"
        :translations="{
          headerTitle: 'Select your mondial relay ®',
          findCpText: 'CP',
          findCityText: 'City',
          cityNoResults: 'no results',
          btnListMobile: 'List',
          btnMapMobile: 'Map'
        }"
    />
  </div>
</template>
import WidgetMondialRelay from 'vue-widget-mondial-relay';
import 'vue-widget-mondial-relay/dist/widget-mondial-relay.min.css';

export default {
  name: 'App',
  components: {
    WidgetMondialRelay
  },
  methods:{
    setParcelSelected(data){
      console.log(data)
    }
  }
}
1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.14

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

1.0.0

3 years ago