简体   繁体   中英

Limit range slider in Angular Js

I am new to angular js. I would like to implement as following. Devide 100% into multiple options(dynamic).

Example: RGB colors, user can using our slider set Red-20% , Green-30% , Blue-50% (balance) Gender male-40% , Female-60% remaining balance.

If user set male to 45% automatically female set to remaining balance 55% with the same slider different color.

Finance share amount between people. http://www.bacubacu.com/colresizable/#samples in that multiple range slider Slider with Multiple Handle and Background Color for content

Can you suggest any one how to achieve using which slider module suit to me ?

Here in CodePen you can see an example of multi-range slider:

http://codepen.io/anandthakker/pen/marlo

Example of usage:

HTML

<slider model="probs" property="p" step=".05"></slider>

MODEL

$scope.probs = [ p: .1, p: .5,  p: .4]

and also a Plunker with a similar 'component':

http://plnkr.co/edit/fb9UD14AOoQqkgKxckrg?p=info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM