5
Hi all,
Here is a translation of a little article that i made for the French suport site.
You can use this Form Element on your XOOPS form by including the formLoader (class/xoopsformloader.php).
The name of this new class is :
XoopsFormColorPicker. The constructor of this class :
XoopsFormColorPicker($caption, $name, $value="#FFFFFF")Caption and name have the same fonctionnality as for other XoopsFormElement and the 3rd parameter is for the default color.
You can test it like this :
$form = new XoopsThemeForm('Color Picker test form', 'color_picker_test', 'test.php', 'post', true);
$form->addElement(new XoopsFormColorPicker("Color Picker","color1"),true);
$form->display();
This code create a form with only the color picker. It work like the dataPicker, you must click on the button to display the color on a popoup windows.
I will add a post about this new feature : "Gave XoopsForm elements the possibility to render custom validation code"
Cheers