themyth92 / ngx-lightbox

Lightbox2 use with angular >= 5
MIT License
115 stars 67 forks source link

Feature Request: Customizable Toolbar #118

Open h5aaimtron opened 2 years ago

h5aaimtron commented 2 years ago

I'm using version 2.5.2 and it is pretty decent overall, however; there are a few things that I could see make this even better. The biggest one would be the ability to add controls to the toolbar (.lb-dataContainer) div. The reason for this is that I would love to replace the download button (CORS issues) as well as add some controls that add functionality that I'm looking for specifically. What I suspect could happen is have an array of controls backed by a common class with properties like type, title, icon (if any), position (left or right), and a call back or subject to subscribe to when the control changes. Alternatively for the download specific issue, you could modify the image model to have a download url that could be provided, but the controls additions would be awesome.