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: 20 packages by
Country: Russian Federation Russian Federation
Age: 37
All time rank: 337594 in Russian Federation Russian Federation
Week rank: 76 Up6 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 14x


  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 (1)  >  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
All time users: 30 users
All time rank: 10885
Week users: 0 users
Week rank: 200 Equal
 
  Groups   Rate classes User ratings   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


  Innovation Award  
PHP Programming Innovation award nominee
December 2022
Number 8
Many Web applications let the users configure certain aspects of how the applications appear to their users.

In some cases, the applications let the users pick icons shown in different parts of the application pages.

This package provides a solution that lets application developers add a widget to a form of application options that allows application users to pick icon images for any practical purpose of the application.

Manuel Lemos

  User ratings  
Not yet rated by the users

  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.