0.1.3 • Published 3 years ago

vuejs-thermometer v0.1.3

Weekly downloads
42
License
MIT
Repository
-
Last release
3 years ago

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

NameTypeDefaultDescription
valueNumber0Value of temp
minNumber-20Min value
maxNumber25Max value
scaleString°CScale format
optionsObjectObjectObject struct
customClassStringN/ACustom css class
0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago