2017 © Pedro Peláez
 

yii2-extension yii2-fontawesome-iconpicker

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

image

dominus77/yii2-fontawesome-iconpicker

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  • Wednesday, May 2, 2018
  • by dominus77
  • Repository
  • 1 Watchers
  • 2 Stars
  • 381 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 11 % Grown

The README.md

yii2-fontawesome-iconpicker

Latest Stable Version License Build Status codecov Scrutinizer Code Quality Total Downloads PayPal donate button SymfonyInsight, (*1)

Renders a Font Awesome v5 Icon Picker widget for Yii2., (*2)

Note

If you want to support font avesome version 4 then use widget version 2, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require dominus77/yii2-fontawesome-iconpicker "^3.0"

or add, (*6)

"dominus77/yii2-fontawesome-iconpicker": "^3.0"

to the require section of your composer.json file., (*7)

Usage

Once the extension is installed, simply use it in your code by :, (*8)



= $form->field($model, 'icon')->widget(IconPicker::class, []) ?>

Client Options:, (*9)

<?= $form->field($model, 'icon')->widget(IconPicker::class, [
    'clientOptions' => [
        'title' => 'Font Awesome Icon', // Popover title (optional) only if specified in the template
        'selected' => false, // use this value as the current item and ignore the original
        'defaultValue' => false, // use this value as the current item if input or element value is empty
        'placement' => 'bottom', // (has some issues with auto and CSS). auto, top, bottom, left, right
        'collision' => 'none', // If true, the popover will be repositioned to another position when collapses with the window borders
        'animation' => true, // fade in/out on show/hide ?
        //hide iconpicker automatically when a value is picked. it is ignored if mustAccept is not false and the accept button is visible
        'hideOnSelect' => false,
        'showFooter' => false,
        'searchInFooter' => false, // If true, the search will be added to the footer instead of the title'
        'mustAccept' => false, // only applicable when there's an iconpicker-btn-accept button in the popover footer
        'selectedCustomClass' => 'bg-primary', // Appends this class when to the selected item
        //'icons' => [], // list of icon classes (declared at the bottom of this script for maintainability)
        'fullClassFormatter' => new \yii\web\JsExpression("function(val){return val;}"),
        'input' => 'input,.iconpicker-input', // children input selector
        'inputSearch' => false, // use the input as a search box too?
        'container' => false, //  Appends the popover to a specific element. If not set, the selected element or element parent is used
        'component' => '.input-group-addon,.iconpicker-component', // children component jQuery selector or object, relative to the container element
        // Plugin templates:
        'templates' => [
            'popover' => '<div class="iconpicker-popover popover"><div class="arrow"></div><div class="popover-title"></div><div class="popover-content"></div></div>',
            'footer' => '<div class="popover-footer"></div>',
            'buttons' => '<button class="iconpicker-btn iconpicker-btn-cancel btn btn-default btn-sm">Cancel</button> <button class="iconpicker-btn iconpicker-btn-accept btn btn-primary btn-sm">Accept</button>',
            'search' => '<input type="search" class="form-control iconpicker-search" placeholder="Type to filter" />',
            'iconpicker' => '<div class="iconpicker"><div class="iconpicker-items"></div></div>',
            'iconpickerItem' => '<a role="button" href="#" class="iconpicker-item"><i></i></a>',
        ],
    ],
]) ?>

Code Sniffer

Check Style, (*10)

composer check-style

Fix Style, (*11)

composer fix-style

Testing

composer test

Resources

License

The MIT License (MIT). Please see License File for more information., (*12)

Sensio Labs

SymfonyInsight, (*13)

The Versions

02/05 2018

dev-master

9999999-dev

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

MIT BSD-3-Clause

The Requires

 

The Development Requires

by Alexey Shevchenko
by Alexey Schevchenko

extension yii2 bootstrap widget fontawesome popover iconpicker dominus77

24/01 2018

v2.0.1

2.0.1.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexey Schevchenko

extension yii2 bootstrap widget fontawesome popover iconpicker dominus77

02/12 2017

v2.0.0

2.0.0.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexey Schevchenko

extension yii2 bootstrap widget fontawesome popover iconpicker dominus77

02/12 2017

v1.2.0

1.2.0.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexey Schevchenko

extension yii2 bootstrap widget fontawesome popover iconpicker dominus77

25/10 2017

v1.1.2

1.1.2.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexey Schevchenko

extension yii2 bootstrap widget fontawesome popover iconpicker dominus77

04/03 2017

v1.1.1

1.1.1.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexey Shevchenko

extension yii2 bootstrap widget fontawesome popover iconpicker dominus77

02/03 2017

v1.1.0

1.1.0.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexey Shevchenko

extension yii2 bootstrap widget popover iconpicker dominus77

02/03 2017

v1.0.0

1.0.0.0

Font Awesome Icon Picker plugin for Twitter Bootstrap widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexey Shevchenko

extension yii2 widget iconpicker dominus77