2017 © Pedro Peláez
 

yii2-extension yii2-colorpicker

Color picker input widget for Yii 2

image

alexantr/yii2-colorpicker

Color picker input widget for Yii 2

  • Monday, February 19, 2018
  • by alexantr
  • Repository
  • 1 Watchers
  • 2 Stars
  • 75 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 47 % Grown

The README.md

Color picker input widget for Yii 2

This extension renders an input with jQuery MiniColors., (*1)

Latest Stable Version Total Downloads License, (*2)

Note: Version 1.x uses jscolor Color Picker, (*3)

Installation

Install extension through composer:, (*4)

composer require alexantr/yii2-colorpicker

Usage

The following code in a view file would render an input with color picker:, (*5)

<?= alexantr\colorpicker\ColorPicker::widget(['name' => 'attributeName']) ?>

If you want to use this input widget in an ActiveForm, it can be done like this:, (*6)

<?= $form->field($model, 'attributeName')->widget(alexantr\colorpicker\ColorPicker::className()) ?>

Configuring the jQuery MiniColors should be done using the clientOptions attribute:, (*7)

<?= alexantr\colorpicker\ColorPicker::widget([
    'name' => 'attributeName',
    'clientOptions' => [
        'control' => 'wheel',
        'letterCase' => 'uppercase',
        'theme' => 'default', // the widget uses 'bootstrap' theme
    ],
]) ?>

The Versions

19/02 2018

dev-master

9999999-dev

Color picker input widget for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget colorpicker color-picker jquery-minicolors

09/02 2018

2.0.0

2.0.0.0

Color picker input widget for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget colorpicker color-picker jquery-minicolors

08/02 2018

v1.x-dev

1.9999999.9999999.9999999-dev

Color picker input widget for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget colorpicker jscolor color-picker

08/02 2018

1.0.0

1.0.0.0

Color picker input widget for Yii 2

  Sources   Download

MIT

The Requires

 

yii2 widget colorpicker jscolor color-picker