itsjavi / bootstrap-colorpicker

Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
https://itsjavi.com/bootstrap-colorpicker/
MIT License
1.38k stars 367 forks source link

I have doubt, help please. #262

Closed 123survesh closed 6 years ago

123survesh commented 6 years ago

Hi, I am new to using javascript components that are created with jquery. I have used components that were created using simple javascript before.

I have doubt here. How do I access the 'colorpicker' Object's attributes and methods? Usually I create an object like this: var a = new Object_name({arguments}); So I use the object "a" to perform all the necessary functions, using the '.' operator But here we are creating the object like this $('#target').colorpicker({arguments}); How do I perform the necessary operations now?

itsjavi commented 6 years ago

Hi, you have all your answers in the documentation and its source code https://farbelous.io/bootstrap-colorpicker/v2/ .data('colorpicker')

Please next time read the documentation before opening an issue like this.

123survesh commented 6 years ago

Sorry @itsjavi Noob here. I skipped that link as it said it was a older documentation. I was searching in the newer docs :sweat_smile: Thanks for the reply :+1: