2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-06-28 05:31:07 -06:00
colorPicker/jQuery_implementation
peterd 1ac6303474 init bug
Bug found by @ct.js
init without customBG causes error
2015-01-30 11:53:49 +01:00
..
2014-09-07 17:49:40 +02:00
2015-01-30 11:53:49 +01:00
2015-01-30 11:53:49 +01:00

jQuery implementation

Some description follows soon...

##Demo See demo at dematte.at/cpn/jQuery_implementation

##Usage

    $('input.color').colorPicker();
    // description of option will follow
    $('input.color').colorPicker({
        klass: window.ColorPicker,
        input: elm,
        patch: elm,
        init: function(elm, colors){}, // initialization callback (before colorPicker gets initialized though)
        animationSpeed: 200,
        draggable: true,
        multipleInstances: false
        margin: {left: -1, top: 2},
        initStyle: 'display: none',
        mode: 'hsv-h',
        size: 1,
        renderCallback: renderCallback
        // and all other options from color and colorPicker
    });