This topic is locked
[SOLVED]

 Parameters for color picker

1/27/2015 7:11:53 AM
PHPRunner General questions
W
wpl author

Hi all,
I'm trying to use miniColors color picker in PHPRunner 7.1, latest build. I have been thinking that "Add initialization script" would pass the parameters entered to the custom control like so:
$this->settings['control'] = 'wheel';

$this->settings['letterCase'] = 'lowercase';
But these parameters apparently are not passed to the control. Or am I totally wrong with the meaning of the initialization script?
Regards

Sergey Kornilov admin 1/27/2015

ColorPicker plugin doesn't have any parameters. Feel free to modify it adding some parameters and passing them to miniColors Javascript code. This article provides pointers and sample code:

http://xlinesoft.com/blog/2012/09/07/how-to-create-your-own-edit-control-plugin/
You can also check SignaturePad plugin code, it should be fairly straightforward.

W
wpl author 1/27/2015



ColorPicker plugin doesn't have any parameters. Feel free to modify it adding some parameters and passing them to miniColors Javascript code. This article provides pointers and sample code:

http://xlinesoft.com/blog/2012/09/07/how-to-create-your-own-edit-control-plugin/
You can also check SignaturePad plugin code, it should be fairly straightforward.


Sergey,
thanks. So it seems I simply was pointed into the wrong direction by visiting the homepage of jquery.miniColors (http://labs.abeautifulsite.net/jquery-minicolors).
Regards