Recommend this page to a friend! |
Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/
Now based on more actual fork https://github.com/eliberty/bootstrap-iconpicker
FontAwesome 4.7.0 support
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist insolita/yii2-iconpicker "^3.0"
or add
"insolita/yii2-iconpicker": "^3.0"
to the require section of your composer.json
file.
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
By default - native bootstrap glyphicon
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
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'icon')->widget('\insolita\iconpicker\Iconpicker',
[
'iconset'=>'fontawesome',
'clientOptions'=>['rows'=>8,'cols'=>10,'placement'=>'right'],
])->label('Choose icon'); ?>
or without ActiveForm
<?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],
]);
?>
Classes of Insolita | > | Yii2 PHP Icon Picker | > | ![]() |
> | ![]() |
> | ![]() |
> | ![]() ![]() |
|
|
Groups | Applications | ![]() |
Groups |
![]() |
HTML generation and processing | View top rated classes |
![]() |
Classes using PHP 5 specific features | View top rated classes |
![]() |
Frameworks and libraries of cooperating classes | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() |
Class | Class source | ||
![]() ![]() |
Doc. | Read me |
![]() ![]() NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() |
Class | Class source | ||
![]() ![]() |
Doc. | Read me |
![]() |
/ | assets |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() ![]() NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|