Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rm-range-slider

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rm-range-slider

A highly optimized and fully customizable pure angular component for value range selection.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

Range-slider

A highly optimized and fully customizable pure angular component for value range selection.

The component is not re-rendered while user moves the thumb. Even if there is a label, only the label component is re-rendered when values are changed.

RangeSlider uses angular Native's Animated library to transform thumbs / label / selected rail. These optimizations help to achieve as much native look & feel as possible using only the JS layer.

Installation

Install my-project with npm

  npm: npm install --save rm-range-slider
  yarn: yarn add rn-range-slider

Usage

Dual Range Slider uses angular hooks, so this component doesn't work with angular below below version 2.

...

import {RmRangeSliderModule} from "@rm-range-slider";

...

<rm-range-slider
	[SliderMinRange]="0"
	[showToolTip]="true"
	[doubleSlider]="true"
	[SliderMaxRange]="100"
	[disabled]="false"
	[setMinValue]="10"
	[setMaxValue]="60"
	[toolTipColor]="'#8a00e5'"
	[rangeColor]="'#8a00e5'"
	[sliderColor]="'#C6C6C6'"
	[toolTipColorHover]="'#b200e5ff'"
	[toolTipColorHoverShadow]="'rgba(108, 0, 119, 0.3)'"
	[sliderColorRight]="'rgba(239,7,65,0.98)'"
	(onValueChanged)="onValueChanged($event)"
></rm-range-slider>
... 

add root lavel style file
:root {
	--tooltip-arrow: red;
	--slider-thumb-color: blue;
	--slider-thumb-color-hover: blue;
	--slider-thumb-color-hover-shadow:  rgba(108, 0, 119, 0.3);
}
... 

Properties

NameDescriptionTypeDefault Value
SliderMinRangeMinimum value of slidernumberInitially min value will be set 0 if not provided
SliderMaxRangeMaximum value of slidernumberInitially max value will be set 100 if not provided
showToolTipShow or hide tool tipbooleanInitially value will be set false if not provided
doubleSliderUse like SIngle Slider or double sliderbooleanInitially value will be set true if not provided
disabledDisable or enable the slider momentbooleanInitially value will be set false if not provided
setMinValueMin value for slider's thumbnail to set onnumberInitially min value will be set 0 if not provided
setMaxValueMax value for slider's thumbnail to set onbooleanInitially max value will be set 100 if not provided
toolTipColorset color for tool tipstringInitially set default color for tool tip is #8a00e5
rangeColorSet color for slider line between both min and max slider's thumnailstringInitially set default color for tool tip is rgba(255,255,255,0.99)
sliderColorSet color for slider linestringInitially set default color for tool tip is rgba(255,255,255,0.47)
toolTipColorHoverset color for tool tip on hoverstringInitially set default color for tool tip is #8a00e5'
toolTipColorHoverShadowset shadow color for tool tip on hoverstringInitially set default color for tool tip is #8a00e5'
sliderColorRightSet color for right side slider linestringInitially set default color for tool tip is rgb(198, 198, 198)
onValueChangedEmit both value object of min and maxobjectIt do not return any value until changes

All the other props (e.g. style) will be passed to root container component.

Keywords

FAQs

Package last updated on 08 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc