@trilogicsi/address-picker
v0.1.4
Published
eHrana delivery address picker
Downloads
12
Readme
Address picker
Example
<AddressPicker
:here-api-url="hereApiUrl"
:here-api-key="hereApiKey"
:original-place="place"
:marker-threshold="markerThreshold"
:marker-icon-options="markerIcon"
:override-style="newStyle"
@cancel="modalOpen = false"
@confirm="setPlace"
@error="handleError"
/>
Props
hereApiUrl!: string
hereApiKey!: string
originalPlace?: Place
markerThreshold?: number = 200 (disabled if 0)
markerIconOptions?: L.IconOptions
overrideStyle?: {
borderRadius?: number
baseColor?: string
errorColor?: string
successColor?: string
backgroundColor?: string
inputBackground?: string
fontColor?: string
borderColor?: string
buttonClass?: string
buttonDangerClass?: string
buttonSuccessClass?: string
inputClass?: string
};
Events
cancel: void
confirm: Place
error: string | Error
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Customize configuration
Publish to npm
npm run build-lib
npm login
npm publish --access public