Skip to content

Add option for custom buttons#245

Merged
feimosi merged 1 commit intofeimosi:devfrom
robistek:customizable-icons
Jul 14, 2024
Merged

Add option for custom buttons#245
feimosi merged 1 commit intofeimosi:devfrom
robistek:customizable-icons

Conversation

@robistek
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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