hi all,
i’m currently doing a week-long internship in a project management department. i have been tasked with creating an app that connects to a list on sharepoint that contains information about equipment the organisation owns (what the item is, where it’s located, etc.). so far i have created a main page using a gallery that contains the names of the items along with a search bar and barcode scanner to further help people find information about an item. this then takes you to a second page that displays all the information about that item.
on this second page, i used containers containing data cards and labels to display the information which is set out something like this:
Item Details
Item [item name]
….
Location
Building [building name]
….
i have also created a function that makes data cards invisible if there is no information available about a specific topic.
what i would like to do is have the data card background colours be alternating between white and grey (for readability purposes). to do this i wanted to use the relative Y value of the data card (whether it’s odd or even and assign the colour based on that). however i can’t find a way to reference it, and my function instead references the actual Y value. another element of complexity is figuring out if the previous data card is visible or hidden as the function assigning colours that i created does not yet take that into account and so two relative Y values that are both even, for example, may be next to each other meaning they would both be assigned the same colour and would not be alternating. so i guess what i’m asking is:
1. is there a way to reference the relative y value instead of the y position on the screen
2. how can i check which of the data cards is the one that is visible above the current data card
if anyone can offer any advice or solutions it would be much appreciated.
thanks,
Nadia

Report
All responses (
Answers (