Skip to content

doriclaudino/react-quick-settings

Repository files navigation

react-quick-settings

how to install

npm i or yarn (inside root folder)

how to run

npm start or yarn start

learn purpose

  1. run the project
  2. open the browser http://localhost:8080/
  3. go to browser console (F11)

execute:

container = document.getElementById('container')
q = new QuickSettings(container)
  
q.addSlider('how_many_cats',1,200,50,1,(x)=>console.log(x))
 .addSlider('how_many_dogs',1,400,50,1,(x)=>console.log(x))
 .addSlider('how_many_horses',1,600,50,1,(x)=>console.log(x))
 
 
 //can check the remove method
 q.remove(title_here)

//can also add and remove item in chain-style
q.addSlider('how_many_cats',1,200,50,1,(x)=>console.log(x))
 .addSlider('how_many_dogs',1,400,50,1,(x)=>console.log(x))
 .addSlider('how_many_horses',1,600,50,1,(x)=>console.log(x))
 .remove('how_many_dogs')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published