Topic: Multiselect with icons on Symfony form
Nath free asked 6 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 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 answered 6 years ago
Currently, we don't support Symfony. However, I'll leave this question open so maybe someone will know the answer
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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