2017 © Pedro Peláez
 

yii2-extension yii2-iconpicker

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

image

insolita/yii2-iconpicker

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

  • Tuesday, November 14, 2017
  • by Insolita
  • Repository
  • 1 Watchers
  • 6 Stars
  • 5,348 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Widget for bootstrap-iconpicker 3.0

Latest Stable Version Total Downloads License, (*1)

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/, (*2)

Now based on more actual fork https://github.com/eliberty/bootstrap-iconpicker, (*3)

FontAwesome 4.7.0 support, (*4)

Installation

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

Either run, (*6)

composer require --prefer-dist insolita/yii2-iconpicker "^3.0"

or add, (*7)

"insolita/yii2-iconpicker": "^3.0"

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

Requirements

This extension require twitter-bootstrap >3.0 You can use it for - glyphicon (with bootstrap by default) - ionicon https://packagist.org/packages/rmrevin/yii2-ionicon - fontawesome https://packagist.org/packages/rmrevin/yii2-fontawesome - weathericon https://github.com/erikflowers/weather-icons - mapicon - octicon https://github.com/github/octicons - typicon https://github.com/stephenhutchings/typicons.font - elusiveicon https://github.com/reduxframework/elusive-icons - materialdesign https://packagist.org/packages/mervick/yii2-material-design-icons, (*9)

By default - native bootstrap glyphicon, (*10)

NOTE!

This extension not provide assets for icon source - you can setup and register it`s in view separately You can create needed assets, or direct include css of icon fonts from folder @bower/eliberty-bootstrap-iconpicker/icon-fonts, (*11)

Usage

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

php <?= $form->field($model, 'icon')->widget('\insolita\iconpicker\Iconpicker', [ 'iconset'=>'fontawesome', 'clientOptions'=>['rows'=>8,'cols'=>10,'placement'=>'right'], ])->label('Choose icon'); ?>, (*13)

or without ActiveForm, (*14)

php <?php echo \insolita\iconpicker\Iconpicker::widget([ 'id'=>'choose_icon', 'name'=>'myicon', 'value'=>'glyphicon-cog', 'iconset'=>'glyphicon', 'pickerOptions'=>['class'=>'btn btn-primary'], 'clientOptions'=>['placement'=>'bottom','search'=>false], ]); ?>, (*15)

The Versions

14/11 2017

dev-master

9999999-dev

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2 bootstrap picker icons fontawesome glyphicon ionicon

27/06 2017

3.0.0

3.0.0.0

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2

18/05 2016

2.0.0

2.0.0.0

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2

18/05 2016

dev-dev

dev-dev

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2

19/11 2014

1.0.0

1.0.0.0

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

  Sources   Download

MIT

The Requires

 

by Avatar Insolita

extension yii2