I have a shortlist on a homepage of a mobile app, I want to restrict that list to 5 items. Is that possible? Or achieved in a different way?
natively for what I looked for there is no way to do, I tried to put html and javascript, but for some reason it did not work.
You can make a conditional, but I do not know if it is the best possible, you will have a job to do the pagination, but you can do it, but you will leave the celilla invisible when the index is greater than 5.
Must have how to do for js and html, a sought after in this, unfortunately I have my demands, but when there is time left I will try to look for more. For now try this palliative and focus on pagination.
I do it slightly differently, adding the restriction directly into the data source with “items until.” Because I’m doing a “load more” button, instead of hardcoding the number, I put the number I want in a state and reference that state with the “items until.” That way I can update the number in the state when the user clicks “load more.” But if you just need a hard limit at 5 that doesn’t need to change, then a simple “items until #5” will be cleaner.
amazing thanks 1
This topic was automatically closed after 70 days. New replies are no longer allowed.


