定制 kunicmarko/color-picker-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kunicmarko/color-picker-bundle

最新稳定版本:1.1.0

Composer 安装命令:

composer require kunicmarko/color-picker-bundle

包简介

This is a Symfony Bundle that adds Color Picker Form Type.

README 文档

README

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="{{ asset('bundles/colorpicker/js/jqColorPicker.min.js') }}"></script>
<script type="text/javascript">
    $('.colorpicker').colorPicker();
</script>

统计信息

  • 总下载量: 63.38k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-08