Categories | Question details Back To List | ||||||||||||||
DHTMLX Colorpicker : Changing the position of colorbox and editing the output of the selected color Hi, I want to change the position of the colorbox from left to right of the textbox. I want to change the output of the color selected i.e I don't want the '#' attached to the RGB combination. How to achieve it ? Answer posted by Support on Jun 26, 2008 08:27 >> I want to change the position of the colorbox from left to right of the textbox. dhtmlxcombo.js, linkTo method ( line 1003 ) self.setPosition(z[1]+s[0]+obj1.offsetWidth,y); the first parameter is the horizontal position >> I want to change the output of the color selected i.e I don't want the '#' attached to the RGB combination. dhtmlxcombo.js, linkTo method ( line 1008 ) if (obj3) obj3.value=color; the color - color value as RGB with # attached, you can change it here in any necessary way. Answer posted by Tejas Shah on Jun 29, 2008 22:18 I still didn't understand how to change the position of colorbox, it will be nice if you can show me with some example. You can see in the attachment as colorBox is in left, I want it to the right of TextBox input. Attachments (1)
Answer posted by Support on Jun 30, 2008 01:57 Please check attached sample Attachments (1)
Answer posted on Jun 30, 2008 03:28 You are not getting what I mean to say. You are giving me solution for whole colorpicker object, but I want to move the colorbox where color selected is shown after clicking on Select button in colorpicker. Please help. Answer posted by Support on Jun 30, 2008 10:00 This is part of design, the relative position of elements described at dhtmlxcolorpicker.js, dhtmlXColorPickerInput function, lines 29-40 You can modify existing layout with any custom one there. |