mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
doc for PickPostalCode vue component
This commit is contained in:
parent
0c47d2cafd
commit
8f2e91d857
@ -1,4 +1,29 @@
|
|||||||
# Pickpostalcode
|
# Pickpostalcode
|
||||||
|
|
||||||
|
Allow to pick a postal code.
|
||||||
|
|
||||||
|
In use with module `mod_pick_postal_code`, associated with `PickPostalCodeType` in php.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
<PickPostalCode />
|
|
||||||
|
`<pick-postal-code @select-city="onCitySelected" @removeCity="onCityRemoved" :picked="city"></pick-postal-code>`
|
||||||
|
|
||||||
|
## Props
|
||||||
|
|
||||||
|
* `picked`: the city picked. A javascript object (a city). Null if empty.
|
||||||
|
* `country`: country to restraint search on picked. May be null.
|
||||||
|
|
||||||
|
## Emits
|
||||||
|
|
||||||
|
### `selectCity`
|
||||||
|
|
||||||
|
When a city is onCitySelected.
|
||||||
|
|
||||||
|
Argument: a js object, representing a city
|
||||||
|
|
||||||
|
### `removeCity`
|
||||||
|
|
||||||
|
When a city is removed.
|
||||||
|
|
||||||
|
|
||||||
|
Argument: a js object, representing a city
|
||||||
|
Loading…
x
Reference in New Issue
Block a user