example code for colorpicker in phonegap

后端 未结 3 1151
感动是毒
感动是毒 2021-01-23 16:02

I cant fix colorpicker.js in phonegap, it is not working! Some help, please?

thanks

$(\'#colorSelector\').ColorPicker({
                    color: \'#000         


        
相关标签:
3条回答
  • 2021-01-23 16:41

    There one paid color picker JQuery Mobile Color Picker, only use it if you don't find the solution!

    0 讨论(0)
  • 2021-01-23 16:42

    Try Spectrum Colorpicker. This is very nice color picker plugin.

    Download the zip file and include the spectrum.js file and spectrum.css file to your page. Then you have to create a text box as follows

    <input type='color' id='custom' />
    

    Inside your script file

     $("#custom").spectrum({
        color: "#f00"
     });
    

    Hope it helped you

    0 讨论(0)
  • 2021-01-23 16:45

    Solved with the Angular-JS directive ngjs-color-picker

    A small directive which essentially is a color picker but with a few extra functions - for Angular-JS. Suitable for developing custom color pallet in phonegap / Cordova apps.

    0 讨论(0)
提交回复
热议问题