Bachir Soussi Chiadmi 4caa864a8f updated contrib modules : migrate_tools, migrate_plus, piwik -> matomo, color_field, config_filter, admin_toolbar | 5 anos atrás | |
---|---|---|
.. | ||
config | 5 anos atrás | |
css | 5 anos atrás | |
images | 6 anos atrás | |
js | 5 anos atrás | |
src | 5 anos atrás | |
templates | 5 anos atrás | |
tests | 5 anos atrás | |
.gitignore | 5 anos atrás | |
LICENSE.txt | 6 anos atrás | |
README.md | 5 anos atrás | |
color_field.info.yml | 5 anos atrás | |
color_field.install | 5 anos atrás | |
color_field.libraries.yml | 6 anos atrás | |
color_field.module | 5 anos atrás | |
color_field.post_update.php | 5 anos atrás | |
composer.json | 5 anos atrás | |
drupalci.yml | 5 anos atrás |
Plain text HEX code (#FFFFFF) Css Declaration (color/background-color)
1) Make this module a base that could be used by any color picker. 2) include http://www.eyecon.ro/colorpicker/ 3) include http://www.dematte.at/colorPicker/ 4) include http://acko.net/blog/farbtastic-jquery-color-picker-plug-in/
Install as you would normally install a contributed Drupal module. See also Core Documentation
There are JavaScript libraries required for a couple of the field widgets. If you are not actively using those field widgets, you can skip their installation if desired.
If you installed color field via Composer, the packages will have been suggested but not automatically installed. If you have Asset Packagist already configured - as most Commerce users will - skip to just requiring the desired package(s).
composer require bower-asset/jquery-simple-color bower-asset/spectrum
Otherwise, to install them you will need to add
Asset Packagist to your composer.json and
do some and make a couple other changes to your composer.json
. Specifically,
in the extra
key add/adjust current values:
"installer-types": [
"npm-asset",
"bower-asset"
],
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:bower-asset",
"type:npm-asset",
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/contrib/{$name}": [
"type:drupal-drush"
]
},
then run
composer require oomphinc/composer-installers-extender
composer require bower-asset/jquery-simple-color bower-asset/spectrum
If you are not using Composer, you will need to manually install them.
/libraries/jquery-simple-color
so that jquery.simple-color.min.js
is in that folder. Required for the Color Grid widget./libraries/spectrum
so that spectrum.js
exists in that folder. Required for the Spectrum widget.Field
Original Creator: targoo.
Maintainers:
Original development sponsored by Marique Calcus and written by Calcus David. For professional support and development services contact targoo@gmail.com.
http://www.w3.org/TR/css3-color/#color https://github.com/mikeemoo/ColorJizz-PHP http://www.colorhexa.com/ff0000 https://github.com/PrimalPHP/Color/blob/master/lib/Primal/Color/Parser.php https://github.com/matthewbaggett/php-color/blob/master/Color.php