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

rm-ng-range-slider

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rm-ng-range-slider

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

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Dual Value Range Selection

Advanced, customizable, Optimized ,Minimal, light-weight and fully customizable pure angular component for value range selection.

npm License


Rm Ng Range Slider for Angular

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 rm-ng-range-slider with npm amd yarn

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

Live DEMO

See the implementation here

Usage

Dual Range Slider uses angular hooks, so this component doesn't work with angular below below version 2. In your component where you want to use the Device Service

import {RmNgRangeSliderComponent} from "rm-ng-range-slider";

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [RmNgRangeSliderComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})
export class AppComponent {
  handleRangeChanged(event: { low: number, high: number }) {
    console.log('Range changed:', event);
  }
}


<rm-ng-range-slider
  [min]="0"
  [max]="100"
  [leftColor]="'#3498db'"
  [rightColor]="'#e74c3c'"
  [leftTooltipColor]="'#333'"
  [rightTooltipColor]="'#e74c3c'"
  (rangeChanged)="handleRangeChanged($event)"
></rm-ng-range-slider>

Version Mapping

SliderNg
1.0.018.x

Properties

NameDescriptionTypeDefault Value
minMinimum value of slidernumberInitially min value will be set 0 if not provided
maxMaximum value of slidernumberInitially max value will be set 100 if not provided
leftTooltipColorset color for left tooltipstringInitially set default color for tool tip is #333
rightTooltipColorset color for right tooltipstringInitially set default color for tool tip is #e74c3c
leftColorSet color for left side slider linestringInitially set default color for tool is #3498db
rightColorSet color for right side slider linestringInitially set default color for tool is #e74c3c
rangeChangedEmit both value object of min and maxobjectIt do not return any value until changes

Issues

If you identify any errors in this component, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!

Author services

Are you interested in this library but lacks features? Write to the author, he can do it for you.

Author

Rajat Malik

Keywords

FAQs

Package last updated on 15 Sep 2024

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