|
Size: | 8584 |
Storage flags: | no_autoload,compress/gzip (32%) |
The FormColor view helper can be used to render a <input type="color"> HTML5 form input. It is meant to work with the Zend\Form\Element\Color element.
FormColor extends from Zend\Form\View\Helper\FormInput.
Basic usage:
1 2 3 4 5 6 | use Zend\Form\Element;
$element = new Element\Color('my-color');
// Within your view...
echo $this->formColor($element);
|
Output:
1 | <input type="color" name="my-color" value="">
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.