weather-widget-pvi
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i weather-widget-pvi

Weekly Downloads

4

Version

1.0.5

License

none

Unpacked Size

132 kB

Total Files

12

Last publish

Collaborators

  • pronkinvi