Topic: mdb select not appearing - pro version
Shanmugham Sundaram pro asked 6 years ago
Sebastian Kaczmarek staff answered 6 years ago
.material_select()
as soon as the index.html
is served, while your actual <select>
control is rendered after this function call- in <app-root>
. Try calling $('.mdb-select').materialSelect()
on OnInit
or AfterViewInit
hook. At this time your <select>
element is already rendered and you can call .materialSelect()
on it to render it properly.
Also, if you want to implement MDB into your Angular project I would kindly recommend you to use MDB Angular. It is created to be used with Angular and is much easier to use in Angular project than MDB jQuery.
Shanmugham Sundaram pro commented 6 years ago
Hi Thanks for the response. since I have purchased Jquery version, can I still use the pro version of Angular? or should it be another new purchase? Please clarify Thanks.Sebastian Kaczmarek staff commented 6 years ago
If you want to have both Angular and jQuery versions available you need to make two purchases. But if you would like to switch from jQuery to Angular version of MDB please reach our customer support at f.kapusta@mdbootstrap.comppulfer pro answered 6 years ago
jquery-3.3.1.min.js:2 jQuery.Deferred exception: $(...).material_select is not a function TypeError: $(...).material_select is not a function at HTMLDocument.<anonymous> (https://HOST/:86:18) at l (https://HOST/js/jquery-3.3.1.min.js:2:29375) at c (https://HOST/js/jquery-3.3.1.min.js:2:29677) undefined
Shanmugham Sundaram pro commented 6 years ago
I did not get this error. But can MDB support can answer whats is wrong in using this select control of JQuery variant in an angular project?? am I missing something ???FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: laptop
- Browser: chrome,firefox,opera
- OS: MAC
- Provided sample code: Yes
- Provided link: No
Sebastian Kaczmarek staff commented 6 years ago
Does your `select` control has `mdb-select` class? Also, can you confirm that `mdb.min.css` is loaded on the page?Shanmugham Sundaram pro commented 6 years ago
Yes it has all requried - `mdb-select` class added mdb.min.css as well.. and gets loaded when I view the page source