DWilliames / google-sheets-sync-figma

80 stars 8 forks source link

Loop through results and only display x number #153

Open erodgers opened 1 year ago

erodgers commented 1 year ago

I have a results page with 30 results cards that I have pulling into Figma, but I want to incorporate a load more button after 10 results. Then once a user clicks the load more button I want to load 10 more.

I'm able to do this currently by breaking down my google sheet to have 3 pages with 10 results each and also creating 3 pages within Figma that are synced with the google sheet pages (1-10, 11-20, & 21-30), but it would be nice if you could specify how many to display from a single file.

An example of how this could possibly work is by expanding up the "@#" feature. You could just append the number of results to loop through such as "@#10 Layer Name".