vuejs-thermometer

Thermometer for Vue.js
3,255
Install
npm install vuejs-thermometer
Latest Version:0.1.3
Vue:2
License:MIT
Last Updated:Nov 1, 2020
Links: npm
Maintainer: larsmars

vuejs-thermometer

Thermometer component for vue.js
v0.1.3

Live demo

Do you have questions or want a new feature? Use the "Issues" section :point_left:

Setup

Install:

  npm install vuejs-thermometer --save

Import:

import VueThermometer from 'vuejs-thermometer'
Vue.use(VueThermometer)

Usage

Use: (in your local .vue file/component, html section)

    <vue-thermometer
      :value="5"
      :min="-20"
      :max="25"
    />

<!-- Options struct: -->
options: {
  text: {
    color: 'black',
    fontSize: 10,
    textAdjustmentY: 2,
    fontFamily: 'Arial',
    textEnabled: true
  },
  thermo: {
    color: '#FF0000',
    backgroundColor: '#fcf9f9',
    frameColor: 'black',
    ticks: 10,
    ticksEnabled: true,
    tickColor: 'black',
    tickWidth: '1'
  },
  layout: {
    height: 300,
    width: 90
  }
}

Properties

Name Type Default Description
value Number 0 Value of temp
min Number -20 Min value
max Number 25 Max value
scale String °C Scale format
options Object Object Object struct
customClass String N/A Custom css class

Related Packages

vue-svg-pan-zoom

Vue component for svg-pan-zoom

59,567
@jt-icons/icon-vue-components

Vue components of JT Icons collection.

2,961 1
@svgv/core

Node.js API to transform SVGs into Vue components.

1,525 4
@k-l-lambda/web-widgets

A package contains some utility vue.js components and modules.

831 0
svg-to-vue

Utility to convert SVG code into Vue component definition

2,667,077 31

Version History

Version Released Vue License
0.1.3 ^2.6.12 MIT
0.1.2 ^2.6.10 MIT
0.1.1 ^2.6.10 MIT
0.1.0 MIT
0.0.7 ^2.6.10 MIT