Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Easy to use, customizeable round slider

License

NotificationsYou must be signed in to change notification settings

daifukufuku/EasyRoundSlider

Repository files navigation

EasyRoundSlider.js is a javascript library for creating customizable round sliders.

demo1

demo2

demo3

Features

  • Easy to use. You just set the dom id and parameters.
  • You can manage multiple sliders separately.
  • You can also stack multiple sliders as parent and child components.
  • You can update the display of the slider from script.

Getting Started

Include EasyRoundSlider.js and its dependencies in your project:

<scriptsrc="jquery-3.6.0.min.js"></script><scriptsrc='round-slider.min.js'></script><divid="your-div-id"></div>
InitializeRoundSlider({"id":"your-div-id","radius":100,"borderWidth":1,"borderColor":"#000000","handleSize":30,"handleColor":"#337ab7"});

InitializeRoundSlider Options

You can customize your slider using the following options:

OptionDescriptionTypeDefault
idThe id of the HTML element that the slider will be applied to.string""
radiusThe radius of the slider.number0
borderWidthThe width of the slider's border.number0
borderColorThe color of the slider's border.string"#000000"
handleSizeThe size of the slider's handle.number0
handleColorThe color of the slider's handle.string"#000000"

Updating RoundSlider Value

Along with the initialization of RoundSlider, you can dynamically update the value of a slider using theupdateRoundSliderValue function. This function takes two parameters: theid of the RoundSlider you wish to update, and thevalue that you wish to set.

updateRoundSliderValue("#your-div-id",0.25);

About

Easy to use, customizeable round slider

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp