PHP Classes

Yii2 PHP Icon Picker: Widget to let users pick icons Bootstrap images

Recommend this page to a friend!

  Author Author  
Picture of Insolita
Name: Insolita <contact>
Classes: 18 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 12x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package provides a widget to let users pick icons and Bootstrap images.

It can generate HTML to show control on a form that the users can interact with to choose icon images.

It provides options to let developers control certain aspects of the widget like:

- the icon set that the users can use

- The number of rows and columns, and icons that will appear on a page

- The text and the placement of the widget label

Details

Widget for bootstrap-iconpicker 3.0

Latest Stable Version Total Downloads License

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

Installation

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.

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

By default - native bootstrap glyphicon

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

Usage

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  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Yii2 PHP Icon Picker
Base name: yii2-iconpicker
Description: Widget to let users pick icons Bootstrap images
Version: 1.0.0
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Libraries Frameworks and libraries of cooperating classes View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageassets (10 files)
Files folder imagemessages (2 directories)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Iconpicker.php Class Class source
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files  /  assets  
File Role Description
  Plain text file ElusiveiconIconset.php Class Class source
  Plain text file FontawesomeIconset.php Class Class source
  Plain text file GlyphiconIconset.php Class Class source
  Plain text file IconpickerAsset.php Class Class source
  Plain text file IoniconIconset.php Class Class source
  Plain text file MapiconIconset.php Class Class source
  Plain text file MaterialdesignIconset.php Class Class source
  Plain text file OcticonIconset.php Class Class source
  Plain text file TypiconIconset.php Class Class source
  Plain text file WeathericonIconset.php Class Class source

  Files folder image Files  /  messages  
File Role Description
Files folder imageen (1 file)
Files folder imageru (1 file)

  Files folder image Files  /  messages  /  en  
File Role Description
  Accessible without login Plain text file iconpicker.php Aux. Auxiliary script

  Files folder image Files  /  messages  /  ru  
File Role Description
  Accessible without login Plain text file iconpicker.php Aux. Auxiliary script

Install with Composer Install with Composer - Download Download all files: yii2-iconpicker.tar.gz yii2-iconpicker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imageassets (10 files)
Files folder imagemessages (2 directories)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Iconpicker.php Class Class source
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files  /  assets  
File Role Description
  Plain text file ElusiveiconIconset.php Class Class source
  Plain text file FontawesomeIconset.php Class Class source
  Plain text file GlyphiconIconset.php Class Class source
  Plain text file IconpickerAsset.php Class Class source
  Plain text file IoniconIconset.php Class Class source
  Plain text file MapiconIconset.php Class Class source
  Plain text file MaterialdesignIconset.php Class Class source
  Plain text file OcticonIconset.php Class Class source
  Plain text file TypiconIconset.php Class Class source
  Plain text file WeathericonIconset.php Class Class source

  Files folder image Files  /  messages  
File Role Description
Files folder imageen (1 file)
Files folder imageru (1 file)

  Files folder image Files  /  messages  /  en  
File Role Description
  Accessible without login Plain text file iconpicker.php Aux. Auxiliary script

  Files folder image Files  /  messages  /  ru  
File Role Description
  Accessible without login Plain text file iconpicker.php Aux. Auxiliary script

Install with Composer Install with Composer - Download Download all files: yii2-iconpicker.tar.gz yii2-iconpicker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.