Giter Site home page Giter Site logo

soundar24 / vue-round-slider Goto Github PK

View Code? Open in Web Editor NEW
68.0 4.0 14.0 479 KB

A round slider component for Vue JS, with range slider support. Also it can be any kind of arc slider such as pie shape, half / semi-circle, quarter circle shape sliders.

Home Page: https://vue.roundsliderui.com/

License: MIT License

JavaScript 36.49% Vue 63.51%
vue vuejs range-slider pie knob round-slider circular-slider radial-slider circle-slider half-circle

vue-round-slider's People

Contributors

dependabot[bot] avatar soundar24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-round-slider's Issues

Cannot set property 'roundSlider' of undefined

Hey,
I'm trying to import this library in my Nuxt project. I simply create a plugin file with following content:

import Vue from 'vue'
import RoundSlider from 'vue-round-slider'
Vue.component('RoundSlider', RoundSlider)

But I get this error:
Cannot set property 'roundSlider' of undefined

Am I doing something wrong here?
Any helps would be appreciated. Thanks in advance

vue version: 2.6.12
nuxt version: 2.14.12
vue-round-slider version: 1.0.1

How to display the value inside the knob?

In the 3rd screenshot under "difference appearances" (the green one) there is the value inside of the knob displayed. How could this be achived? Didn't found a solution for that until now

Vue 3 support

It's will be great if a Vue 3 compatible version is provided.

Tried the version 1.0.1 on Vue 3 and got

runtime-core.esm-bundler.js?5c40:218 Uncaught TypeError: Cannot read property '_c' of undefined
    at Proxy.__vue_render__ (vue-roundslider.esm.js?a824:406)
    at renderComponentRoot (runtime-core.esm-bundler.js?5c40:1167)
    at componentEffect (runtime-core.esm-bundler.js?5c40:5220)
    at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)
    at effect (reactivity.esm-bundler.js?a1e9:17)
    at setupRenderEffect (runtime-core.esm-bundler.js?5c40:5173)
    at mountComponent (runtime-core.esm-bundler.js?5c40:5132)
    at processComponent (runtime-core.esm-bundler.js?5c40:5090)
    at patch (runtime-core.esm-bundler.js?5c40:4684)
    at mountChildren (runtime-core.esm-bundler.js?5c40:4880)

Can the whole range be dragged?

It would great if it is possible to drag the whole range in both directions to be able to change the min and max values without changing the "distance" between them.

TooltipFormat With Array v-model

As i saw, tooltip can't be formatted with array values.

I have an array like "arr[0, 24]" (v-model="arr")

i need to format it like "0 am - 12 pm", couldn't achieve this

by the way, in events, options.value should be an object, not a string

[Feature] Add flat slider

Hey @soundar24 ,

it's me again :)

another cool thing would be a flat slider.

Currently I am using two sliders on my page, the flat slider is showing on desktop and a round slider is used on mobile, because the space is limited.

If I could just use your slider also as a flat one that would be nice.

[Feature] Add Labels around the circle

Hello,

It would be nice to display the labels/values around the cirlce, like in the image below.

Or if you know how I can do it on my page by myself, this would also be cool.

image

svgMode

Hey Soundar,

thanks for this useful Vue component.

Since vue-round-slider is a wrapper for RoundSlider, is it possible to integrate svgMode in vue-round-slider?

Amos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.