You are here

README.txt in Jquery Colorpicker 8

Same filename and directory in other branches
  1. 8.2 README.txt
  2. 6 README.txt
  3. 7 README.txt
The Drupal 8 branch of Jquery Colorpicker offers a form element than can be
included in any form in this way:

<?php
$form['element'] = [
	'#type' => 'jquery_colorpicker',
	'#title' => t('Color'),
	'#default_value' => 'FFFFFF',
];
?>

This module includes Field API integration. A colorpicker field can be added to
any content type with the JQuery Colorpicker widget

==================
Installation guide
==================

Manual installation:
 1.- Navigate to the /libraries folder in the Drupal webroot. Create this directory if it does not exist.
 2.- Go to www.eyecon.ro/colorpicker/ and download colorpicker.zip.
      The library can also be found at https://github.com/jaypan/jquery_colorpicker
 3.- Extract the the zip file content to the
      /libraries/jquery_colorpicker folder.
 4.- If you have extracted the contents correctly, the following file should
      exist: /libraries/jquery_colorpicker/js/colorpicker.js
 5.- Install the module same as any other Drupal module
 6.- Enjoy your colors!!

File

README.txt
View source
  1. The Drupal 8 branch of Jquery Colorpicker offers a form element than can be
  2. included in any form in this way:
  3. $form['element'] = [
  4. '#type' => 'jquery_colorpicker',
  5. '#title' => t('Color'),
  6. '#default_value' => 'FFFFFF',
  7. ];
  8. ?>
  9. This module includes Field API integration. A colorpicker field can be added to
  10. any content type with the JQuery Colorpicker widget
  11. ==================
  12. Installation guide
  13. ==================
  14. Manual installation:
  15. 1.- Navigate to the /libraries folder in the Drupal webroot. Create this directory if it does not exist.
  16. 2.- Go to www.eyecon.ro/colorpicker/ and download colorpicker.zip.
  17. The library can also be found at https://github.com/jaypan/jquery_colorpicker
  18. 3.- Extract the the zip file content to the
  19. /libraries/jquery_colorpicker folder.
  20. 4.- If you have extracted the contents correctly, the following file should
  21. exist: /libraries/jquery_colorpicker/js/colorpicker.js
  22. 5.- Install the module same as any other Drupal module
  23. 6.- Enjoy your colors!!