
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
vue-double-range-input
Advanced tools
Double range input for vue 3 with min and max value that help you select two value with one input
Double range input for vue 3 with min and max value that help you select two value with one input.
One of important usage is in shops for filtering between min and max price.
Run this code to install this package:
npm i vue-double-range-input
Then You should Import component's style:
import 'vue-double-range-input/dist/style.css';
Now you can import package:
import VueDoubleRangeInput from 'vue-double-range-input';
This is a simple version of component with minimum props that needed:
<VueDoubleRangeInput :min="min"
:max="max"
v-model:minValue="minValue"
v-model:maxValue="maxValue" />
If you want to change the text of numbers, you can do it like below:
<VueDoubleRangeInput :min="min"
:max="max"
v-model:minValue="minValue"
v-model:maxValue="maxValue">
<!-- Do not change minValueRef and maxValueRef spelling -->
<template #from="{ minValueRef }">
از: {{ (Number(minValueRef)).toLocaleString('fa-IR') }}
</template>
<template #to="{ maxValueRef }">
تا: {{ (Number(maxValueRef)).toLocaleString('fa-IR') }}
</template>
</VueDoubleRangeInput>
Use :value
and @change
if you want to change values in an input.
Note: If you want to change component values from outside, its better to use :value and @change like below. Otherwise you may see some weird issues.
<div>
<input type="text" name="min_value" id="min_value"
:value="minValue"
@change="minValue = $event.target.value">
<input type="text" name="max_value" id="max_value"
:value="maxValue"
@change="maxValue = $event.target.value">
</div>
This one has everything that you can do on this component:
<div>
<input type="text" name="min_value" id="min_value"
:value="minValue"
@change="minValue = $event.target.value">
<input type="text" name="max_value" id="max_value"
:value="maxValue"
@change="maxValue = $event.target.value">
</div>
<VueDoubleRangeInput dir="rtl"
step="5"
color="#2497E3"
track-color="rgba(100,100,100,0.5)"
track-radius="5px"
track-height="10px"
handle-color="#2497E3"
handle-radius="5px"
handle-width="24px"
handle-height="24px"
:push-on-touch="false"
:show-numbers="true"
:min="min"
:max="max"
v-model:minValue="minValue"
v-model:maxValue="maxValue">
<template #from="{ minValueRef }">
از: {{ (Number(minValueRef)).toLocaleString('fa-IR') }}
</template>
<template #to="{ maxValueRef }">
تا: {{ (Number(maxValueRef)).toLocaleString('fa-IR') }}
</template>
</VueDoubleRangeInput>
dir: (default: ltr) don't use it if your want to be ltr or just put ltr in it.
step: (default: null) just like step in normal range input.
color: (default: #2497E3) color of line between two value (accept all css color selector).
track-color: (default: #cccccc) set color of full track in behind (accept all css color selector).
track-height: (default: 9px) set height for track.
track-radius: (default: 9999px) set border-radius for track.
handler-color: (default: #2497E3) set color of circle handlers of input range (accept all css color selector).
handler-radius: (default: 9999px) set border-radius for handlers.
handler-width: (default: 24px) set width for handlers.
handler-height: (default: 24px) set height for handlers.
show-numbers: (default: true) set it to false if you want to hide "from" and "to" numbers.
push-on-touch: (default: true)
min: same as min in normal range input.
max: same as max in normal range input.
v-model:minValue: same as value in normal range input but for min.
v-model:maxValue: same as value in normal range input but for max.
FAQs
Double range input for vue 3 with min and max value that help you select two value with one input
The npm package vue-double-range-input receives a total of 13 weekly downloads. As such, vue-double-range-input popularity was classified as not popular.
We found that vue-double-range-input 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.