DHTMLX Docs & Samples Explorer

Index
dhtmlxcolorpicker
API Methods

## Constructor of dhtmlXColorPicker

            var picker = new dhtmlXColorPicker(parent,click,colors,hide,full)

where

- parent - id of HTML element which will be used as parent ( or object itself ), optional
- click - {boolean} enable/disable limited color selection mode, optional
- colors - {boolean} is custom colors area visible, optional
- hide - {boolean} enable init in hidden state, optional
- full - {boolean} simple selection or complex selection mode, optional

          <div id='my_picker_here'></div>
          <script>
          //common init code
          var picker = new dhtmlXColorPicker("my_picker_here",false,true);
          </script>

Starting from 2.5 version, color-picker can be initialized by object notation

          var picker = new dhtmlXColorPicker({
              some_option1:some_value_1,
              some_option2:some_value_2,
              ...
              some_optionN:some_value_N,
          })

List of supported options

    	picker = new dhtmlXColorPicker({
    		parent:"my_picker_here",
    		onSelect:function(){
    			alert("color selected");
    		}
    	});