Topic: Multiselect with icons on Symfony form

Nath free asked 5 years ago

Hi everyone,

I would like to use multiselect with icon in Symfony, but I don't know how to do that.
In Symfony we can to add a class in the form builder or in my case, I work with each field separeted. Here is an sample of my actual select:

{{ form_widget(form.arcades, {'attr':{'class':'mdb-select md-form colorful-select dropdown-dark'} }) }}

But I don't know how to add "data-icon". Do you have an idea how can I to do that?
Have a nice day.

Grzegorz pro answered 5 years ago

for materialize - its simple just use 1 js + 1 css + add form theme here is manual

here is symfony theme modification

i think MDB should create theme for MDB

Bartłomiej Malanowski staff commented 5 years ago

Thank you for the tip. I'm sure we'll do it soon!

Currently, we don't support Symfony. However, I'll leave this question open so maybe someone will know the answer 

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.14
  • Device: PC
  • Browser: Firefox
  • OS: Windows
  • Provided sample code: Yes
  • Provided link: No