I would like to trigger the overlay from different elements and with attributes other than just href. For example, I'd like to open the overlay with this button: <button data-src="my-image.jpg">Show Overlay</button>.
I think this could be achieved without much code and without BC breaks by adding two configuration options triggerSelector and srcAttribute which would default to a and href, respectively.
I would like to trigger the overlay from different elements and with attributes other than just
href. For example, I'd like to open the overlay with this button:<button data-src="my-image.jpg">Show Overlay</button>.I think this could be achieved without much code and without BC breaks by adding two configuration options
triggerSelectorandsrcAttributewhich would default toaandhref, respectively.