Getting Started
5 Dec 2018 / 1 minute to read
This section illustrates the details on how to render and configure a ColorPicker control using the methods available in PHP wrapper classes.
Create a PHP Project and add necessary scripts and styles with the help of the given PHP Getting Started Documentation.
Create ColorPicker
Create a ColorPicker control by instantiating the ColorPicker class available in EJ namespace and configure it.
<?php
$color = new \EJ\ColorPicker("ColorPicker");
echo $color->value("#278787")->render();
?>
The following screenshot illustrates the output of above code.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page