Check documentation for the latest version 6.0 of dhtmlxSuite setPosition DHTMLX Docs

setPosition

shows dhtmlXColorPicker in the specified position

void setPosition(number x,number y);

Parameters

xnumberleft position "px"
ynumbertop position "px"

Example

myColorPicker.setPosition(390, 90);

Details

if ColorPicker is attached to an input, you should specify its position as follows:

myColorPicker.setPosition("right");
// or
myColorPicker.setPosition("bottom");
Back to top