
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
vue-simple-range-slider
Advanced tools
Change Your numeric value or numeric range value with dragging handles
Change your numeric value or numeric range value with dragging handles
Requires Vue >=3.2.0 or >=2.7.0
npm install vue-simple-range-slider
Or
yarn add vue-simple-range-slider
<template>
<div>
<VueSimpleRangeSlider
style="width: 300px"
:min="0"
:max="1000000"
exponential
v-model="state.range"
>
<template #prefix="{ value }">$</template>
</VueSimpleRangeSlider>
<VueSimpleRangeSlider
style="width: 300px"
:min="0"
:max="20"
v-model="state.number"
/>
</div>
</template>
<script>
import VueSimpleRangeSlider from "vue-simple-range-slider";
import "vue-simple-range-slider/css";
import { reactive, defineComponent } from "vue";
export default defineComponent({
// register the component
components: { VueSimpleRangeSlider },
setup() {
const state = reactive({ range: [20, 1000], number: 10 });
return { state };
},
});
</script>
For Vue 2 import the component like this:
import VueSimpleRangeSlider from "vue-simple-range-slider/vue2";
import "vue-simple-range-slider/vue2/css";
Name | Type | Default |
---|---|---|
value (vue2) | number Or [number,number] | |
model-value (vue3) | number Or [number,number] | |
min | number | 0 |
max | number | 100 |
exponential | boolean | false |
bar-color | string | #bebebe |
active-bar-color | string | #6699ff |
keep-just-significant-figures | boolean | true |
significant-figures | number | 2 |
popover-content-editable | boolean | true |
Name | Type |
---|---|
input (vue2) | (number) => void Or ([number,number]) => void |
update:model-value (vue3) | (number) => void Or ([number,number]) => void |
Name | Type |
---|---|
prefix | {value: number} |
suffix | {value: number} |
splitter | void |
FAQs
Change Your numeric value or numeric range value with dragging handles
The npm package vue-simple-range-slider receives a total of 921 weekly downloads. As such, vue-simple-range-slider popularity was classified as not popular.
We found that vue-simple-range-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.