Topic: Help! I cannot get even the simplest dropdown example to work!

sjlearmonth free asked 1 year 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?


konstantin@lasertag-center.de priority commented 1 year 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 1 year ago

That worked up to the version 6.4.2 From version 7 init attribute is data-mdb-dropdown-init


Kamila Pieńkowska staff answered 1 year 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.



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

  • 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