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

laravel 5.8 function not found #293

Closed aliqasemzadeh closed 5 years ago

aliqasemzadeh commented 5 years ago

Hello, I am using laravel 5.8 (https://github.com/pcshiraz/ecommerce) and I want to use boostrap colorpicker.

I add window.colorPicker = require('bootstrap-colorpicker'); to app.js and call a function $('.color').colorpicker(); but I get 16:314 Uncaught TypeError: $(...).colorPicker is not a function and it doesn't work.

itsjavi commented 5 years ago

I am not sure how you integrate the plugin or what version are you using, but for what you say you are assigning it to the window object instead of the jQuery object.

Closing, because it's not a bug.

aliqasemzadeh commented 5 years ago

@itsjavi I see only color poppers.Check image: 2019-04-03