Need a little help with an Image gallery Navbar/Tracker. I hope can explain enough details, but please ask anything if unclear.
Basically I have an asset management App, where a user can select a building. From that selection I am building a few collections that stores the SP folder structure and also counts the number of images from the selected building/image folder.
Once that is done I am doing some math, to calculate the width of the gallery based the number of images to display a gallery Navbar. basically a bunch of circles that track where the user is (by coloring) the image. So if there is 20 images and user is one image 4, it colors the 4ht circle in black.
My issue is once I get over X number of images it will draw the gallery as too large to display on screen. I can set the X position to 0 to get the start of the gallery but the end of the boundary is off canvas screen.
I basically want to say If X (countRows) > 20, then I want to show a control icon and from there I want to be able to start set my first object in the gallery to 1. then if user presses right arrow it will push all NavBar objects and set the first object in gallery (being shown) to be the 10th. If you look at the samples one is easy, 2 items. The other is more or less what I mean. If I reduce the gallery width dynamically how can I show only a range in the gallery window?
Can this be done? I have 90% of the desired functionality completed. Coloring, sizes, placement. It is just controlling that I cannot figure out.
Any guidance would be great.

Report
All responses (
Answers (