Home

Awesome

xns-seek-bar

A seekable progress bar component for Vue.js

xns-seek-bar

install

$ npm i xns-seek-bar

Import & initiate plugin on your entry js file

import XnsSeekBar from 'xns-seek-bar'

Vue.use(XnsSeekBar)

In Browser

// Latest update
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xns-seek-bar/dist/index.umd.js"></script>

Example

<xns-seek-bar :bar-color="'#ffdd00'" :current-value="33" :total-value="100"></xns-seek-bar>

Options

OptionTypeRequiredDefault
currentValueNumberfalse0
totalValueNumberfalse300
listenBooleanfalsetrue
barHeightNumberfalse0.5
barColorString (Hex)falsefalse
barShadeColorString (Hex)falsefalse
intensityNumber (0.1 - 1))false0

Options Details

listen : Enable touch / tap.

Events

seekedTo Returns a Number representing value of seeked position.