Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for custom buttons #245

Merged
merged 1 commit into from
Jul 14, 2024
Merged

Conversation

robistek
Copy link
Contributor

@robistek robistek commented Apr 2, 2021

Add support for custom buttons.
Resolving #35

New options: leftArrow, rightArrow, closeX

    baguetteBox.run('.baguetteBox', {
        leftArrow : '...',
        rightArrow : '...',
        closeX : '...'
    });

All options must be valid SVG markup.
The buttons will be updated inside setOptions by setting innerHTML on the button element(s).

If no options are passed the default buttons will be used.

Works with multiple instances of baguetteBox - like in the demo.
You're able to customize the galleries separately unlike #204.

Thank you for considering this contribution.

Customize buttons using the following options:
 - leftArrow
 - rightArrow
 - closeX

All options must be strings and valid HTML/SVG markup.
@mattlitzinger
Copy link

Went looking for this same feature. Any chance of getting this merged?

@feimosi feimosi merged commit d8ad2ca into feimosi:dev Jul 14, 2024
@feimosi
Copy link
Owner

feimosi commented Jul 14, 2024

Apologies for the delay

This was referenced Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants