1.0.5 • Published 2 years ago

weather-widget-pvi v1.0.5

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

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">
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago