GitXplorerGitXplorer
k

ColorPickerBundle

public
4 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
3ab13c1dd6090d785e9aa952e5fdb36e1b054b8f

update tests

kkunicmarko20 committed 7 years ago
Unverified
44fdd2c41a926abec18a751053d0c5ac27f73fa8

add coveralls

kkunicmarko20 committed 7 years ago
Unverified
de74fbacd8a1a55b63a6acd699105dc810b3e774

add tests, fix readme

kkunicmarko20 committed 7 years ago
Unverified
c5069b10d3f8e82996f0bb67ace362a1a59910ea

Merge pull request #1 from kunicmarko20/analysis-XpyrM6

kkunicmarko20 committed 7 years ago
Unverified
48515f957aaafe305245a9653ac025712620a5a0

Apply fixes from StyleCI

kkunicmarko20 committed 7 years ago
Unverified
2cd3e8b20b92e36369f9d77b95140c4fe7867a91

init

kkunicmarko20 committed 7 years ago

README

The README file for this repository.

Color Picker Bundle

Build Status SensioLabsInsight StyleCI Coverage Status

Adds Color Picker Form Type to Symfony.

Built on top of tinyColorPicker.

Documentation

Installation

1. Add to composer.json to the require key

composer require kunicmarko/color-picker-bundle

2. Register the bundle in app/AppKernel.php

$bundles = array(
    // ...
    new KunicMarko\ColorPickerBundle\ColorPickerBundle(),
);

3. Install assets

app/console assets:install

How to use

In your form you can add it like:

// Symfony 2.8 and newer versions
use KunicMarko\ColorPickerBundle\Form\Type\ColorPickerType;

$builder->add('field', ColorPickerType::class);

At the end of your body/layout add:

<script type="text/javascript" src="https://raw.githubusercontent.com/kunicmarko20/ColorPickerBundle/master/{{ asset('bundles/colorpicker/js/jqColorPicker.min.js') }}"></script>
<script type="text/javascript">
    $('.colorpicker').colorPicker();
</script>