Topic: Multiselect with icons on Symfony form

Nath free asked 3 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 3 years ago


for materialize - its simple just use 1 js + 1 css + add form theme here is manual https://blog.theodo.fr/2017/03/transform-your-symfony-forms-make-it-nice-elegant-and-modern-with-material-design-in-5-minutes/

here is symfony theme modification https://gist.github.com/JusteLeblanc/da4d2100fc966e0962e5f50daf9333f9

i think MDB should create theme for MDB


Bartłomiej Malanowski staff commented 3 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.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • User: 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