weather-widget-pvi
v1.0.5
Published
Using npm: ```shell $ npm i weather-widget-pvi ```
Downloads
8
Readme
Installation
Using npm:
$ npm i weather-widget-pvi
Usage
<template>
<weather-widget/>
</template>
<script setup lang="ts">
import {WeatherWidget} from "weather-widget-pvi";
import "weather-widget-pvi/dist/style.css"
</script>
Table of Contents
Props
defaultCity
Type: String
Required: false
Default: Petersburg
Used to set the custom name of a default city.
<weather-widget default-city="Moscow"/>
Events
added-location
Parameters:
location
added location
Called whenever the component gets a new location.
<weather-widget @added-location="onAdde">
removed-location
Parameters:
location
removed location
Called whenever the location removed from the order.
<weather-widget @removed-location="onRemove">
updated-order
Parameters:
locations
new array of locations
Called whenever the locations' order was updated
<weather-widget @updated-order="onReorder">