zeliard91 / fontawesomepickerbundle Goto Github PK
View Code? Open in Web Editor NEWFont Awesome Picker for Symfony 2+
License: MIT License
Font Awesome Picker for Symfony 2+
License: MIT License
Uncaught TypeError: $(...).iconpicker is not a function at :1:24
Using JQuery 3.2.1
iconpicker is loaded in jQuery. Any suggestions?
after composer require command:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- redking/fontawesome-picker-bundle v1.4.0 requires symfony/framework-bundle ^2.8|^3.4|^4.2|^5.4 -> satisfiable by symfony/symfony[v2.8.0, ..., v2.8.52, v3.4.0, ..., v3.4.49].
- redking/fontawesome-picker-bundle[v1.2.0, ..., v1.3.0] require symfony/framework-bundle ^2.8|^3.4|^4.2 -> satisfiable by symfony/symfony[v2.8.0, ..., v2.8.52, v3.4.0, ..., v3.4.49].
- redking/fontawesome-picker-bundle[v1.0.0, ..., v1.1.0] require php ^5.6 || ^7.0 -> your php version (8.1.20) does not satisfy that requirement.
- symfony/symfony[v2.8.0, ..., v2.8.52, v3.4.0, ..., v3.4.49] require doctrine/common ~2.4 -> found doctrine/common[v2.4.0, ..., 2.13.3] but the package is fixed to 3.4.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- redking/fontawesome-picker-bundle[v1.5.0, ..., v1.6.0] require symfony/framework-bundle ^4.4|^5.4 -> found symfony/framework-bundle[v4.4.0, ..., v4.4.49, v5.4.0, ..., v5.4.25] but it conflicts with your root composer.json require (6.3.*).
- symfony/symfony[v3.4.12, ..., v3.4.14] require doctrine/common ~2.4@stable -> found doctrine/common[v2.4.0, ..., 2.13.3] but the package is fixed to 3.4.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires redking/fontawesome-picker-bundle * -> satisfiable by redking/fontawesome-picker-bundle[v1.0.0, ..., v1.6.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
When adding this control to an EasyAdmin form field I receive the following error:
Undefined index: picker_options
This is the field configuration:
- { property: icon, type: 'Redking\FontAwesomePickerBundle\Form\Type\FontAwesomeType' }
Changing the field configuration to explictly include the picker_options value like below
- { property: icon, type: 'Redking\FontAwesomePickerBundle\Form\Type\FontAwesomeType', type_options: { picker_options: { } } }
results in the following error:
The option "picker_options" does not exist. Defined options are: "action", "allow_extra_fields", "attr", "auto_initialize", "block_name", "by_reference", "compound", "constraints", "csrf_field_name", "csrf_message", "csrf_protection", "csrf_token_id", "csrf_token_manager", "data", "data_class", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "inherit_data", "invalid_message", "invalid_message_parameters", "label", "label_attr", "label_format", "mapped", "method", "post_max_size_message", "property_path", "required", "translation_domain", "trim", "upload_max_size_message", "validation_groups".
Using
EasyAdmin: 1.17
Symfony 3.3.10
PHP 7.0.22
Issue resolved by adding the following code to the file: Redking\FontAwesomePickerBundle\Form\Type\FontAwesomeType
public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'picker_options' => [] ]); }
along with adding this use statement
use Symfony\Component\OptionsResolver\OptionsResolver;
Once the above changes were made both ways of setting up the field worked properly. Passing or not passing values and passed values worked as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.