2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-06-28 13:41:02 -06:00
colorPicker/javascript_implementation
peterd 9db60daa8c Initial commit
Transcription of the jQuery implementation (IE8+ or with
querySelectorAll polyfill)
2014-10-05 18:12:21 +02:00
..
2014-10-05 18:12:21 +02:00
2014-10-05 18:12:21 +02:00
2014-10-05 18:12:21 +02:00
2014-10-05 18:12:21 +02:00

javaScript implementation (IE8+ or with querySelectorAll polyfill)

Some description follows soon...

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

##Usage

    jsColorPicker('input.color');
    // description of option will follow
    jsColorPicker('input.color', {
        klass: window.ColorPicker,
        input: elm,
        patch: elm,
        // animationSpeed: 200, will be supported soon
        // 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
    });