redking/fontawesome-picker-bundle
最新稳定版本:v1.7.2
Composer 安装命令:
composer require redking/fontawesome-picker-bundle
包简介
Font Awesome Picker for Symfony 2+
README 文档
README
Implementation of FontAwesome Picker Form Type for Symfony 2+
Installation
Donwload the bundle with composer.
composer require redking/fontawesome-picker-bundle
Register the bundle in the kernel.
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Redking\FontAwesomePickerBundle\RedkingFontAwesomePickerBundle(), ); }
Add the following js and css to your layout assets :
/bundles/redkingfontawesomepicker/js/fontawesome-iconpicker.min.js/bundles/redkingfontawesomepicker/css/fontawesome-iconpicker.min.css
Usage
Use the form type as usual :
use Redking\FontAwesomePickerBundle\Form\Type\FontAwesomeType // ... public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('icon', FontAwesomeType::class, array( 'picker_options' => [], // You can pass here the options of the widget )); }
统计信息
- 总下载量: 2.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-19