Topic: Start the lightbox via a card

jore priority asked 1 year ago


Hello, I want to start a lightbox via a card. This should contain several images. Is that possible?

Resources (screenshots, code snippets etc.)

https://mdbootstrap.com/snippets/standard/jore/2882826

Thank you for your help.


jore priority answered 1 year ago


Thank you very much for helping.


Grzegorz Bujański staff answered 1 year ago


You can add Lightbox with d-none class to hide it. Then add some js to the button to open the Lightbox, like in this example: https://mdbootstrap.com/docs/standard/components/lightbox/#section-outside-access.

Look at this snippet: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/2895022#



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: PC
  • Browser: Edge, Chrome, Opera
  • OS: Windows 10 Pro
  • Provided sample code: No
  • Provided link: Yes