Topic: Help! I cannot get even the simplest dropdown example to work!
sjlearmonth free asked 11 months ago
I don't understand how to get the first example dropdown code to work at https://mdbootstrap.com/docs/standard/components/dropdowns/Do I need to write some Javascript?
Kamila Pieńkowska staff answered 11 months ago
If you use version 7 all you need to do is copy HTML from the code snippet. JS is needed only for ES import.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 7.0.0
- Device: macBookPro
- Browser: Google Chrome
- OS: macOS
- Provided sample code: No
- Provided link: Yes
konstantin@lasertag-center.de priority commented 11 months ago
And without ES :)To enable the dropdown functionality, add
data-mdb-toggle="dropdown"
to your dropdown button in your HTML code. This attribute activates the dropdown feature for the button.Legacydocs:
https://v5-standard-6.legacydocs.mdbootstrap.com/
Kamila Pieńkowska staff commented 11 months ago
That worked up to the version 6.4.2 From version 7 init attribute is
data-mdb-dropdown-init