Git Product home page Git Product logo

fontawesomepickerbundle's People

Contributors

zeliard91 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hdimo

fontawesomepickerbundle's Issues

Error when form is loading

Uncaught TypeError: $(...).iconpicker is not a function at :1:24
Using JQuery 3.2.1

iconpicker is loaded in jQuery. Any suggestions?

composer issue

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.

Error message when using control in EasyAdmin bundle

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.