select

Get help with using Metro 4 components
Post Reply
emov19
Posts: 1
Joined: Thu Aug 23, 2018 4:49 am
Status: Offline

select

Post by emov19 » Thu Aug 23, 2018 4:58 am

Hi!,

I am integrating metroui and angular, however I am having problems.

it happens that the component select when adding: data-role = "select", does not allow me to use the directive (change) of angular, if I remove data-role = "select" it allows me to use the directive (change) of angular, but the select css style is lost

How can i solve this?

Thank you!

drodriguez
Posts: 44
Joined: Wed Apr 11, 2018 7:32 pm
Status: Offline

Post by drodriguez » Thu Aug 23, 2018 5:29 pm

I don't know with angular but i have the same problem with vuejs....
In vuejs: jQuery Change event ( $(select).val(val); $(select).trigger("change"); ) not fire the input change to work with vuejs.

Please open https://cdn.metroui.org.ua/v4/js/metro.js , go to line 14195 and 14196 to see the events.
The "bug" is like https://stackoverflow.com/questions/181 ... ith-jquery

In VueJs i have to make a wrapper (component or directive) for metro data-role="select".... I did that but select2.js plugin to work with metro.
Some day (when i have free time) I will do that with metro select and vuejs without select2.

good luck and let me know if you something else.

Post Reply