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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

robistek
Copy link

@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.
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.

None yet

1 participant