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

Cannot customize a specific gallery #8

Open
Rinyuu opened this issue May 15, 2021 · 0 comments
Open

Cannot customize a specific gallery #8

Rinyuu opened this issue May 15, 2021 · 0 comments

Comments

@Rinyuu
Copy link

Rinyuu commented May 15, 2021

I made two different configurations at the end of the main.js file:

gridGallery({
 selector: "#main",
 darkMode: false,
 layout: "square",
 gapLength: 0,
 rowHeight: 500,
 columnWidth: 400
});

gridGallery({
 selector: "#main-vertical",
 darkMode: false,
 layout: "vertical",
 gapLength: 1,
 rowHeight: 800,
 columnWidth: 400
});

However, only the top (selector "main") configuration will be loaded.
I want to apply ONLY the second, vertical configuration to my gallery:

     <div class="gg-box" id="main-vertical">
                        <img src="resources/picture/cr1.jpg">
                        <img src="resources/picture/cr2.jpg">
                    </div>

It will just load the square "main" gallery, though...
Any way to get around this?

Thanks!

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

No branches or pull requests

1 participant