Cómo renderizar una fila de cuatro elementos a partir de más elementos [SPA-ENG]

avatar

Me ha pasado encontrarme con un problema desarrollando una aplicación móvil para un amigo en el cual necesitaba crear filas que contuvieran los meses del año de cuatro en cuatro.
Esto era para crear una cuadrícula con los meses del año de manera que en la aplicación pudieran seleccionar cada mes en particular e ir visualizando las ganancias a lo largo de ese mes.

I ran into a problem while developing a mobile app for a friend in which I needed to create rows containing the months of the year, four at a time. This was to create a grid with the months of the year so that in the app they could select each specific month and view their earnings throughout that month.

Consistía más en una interfaz visual que lo funcional pero en este tipo de marcos de trabajos no hay mucha libertad de diseño sino que hay que ingeniárselas por lo tanto cree una función que permite elegir cuántos meses se desean mostrar por fila y desde qué índice inicial hasta qué índice final.

It was more of a visual interface than a functional one, but in this type of framework there isn't much design freedom; you have to be creative. So I created a function that allows you to choose how many months you want to display per row and from what starting index to what ending index.
Los geniales que funcionó perfectamente me creó tres filas con cuatro meses y a medida que se va seleccionando alguno de esos meses se puede ir viendo las ganancias que se tuvieron en ese mes.
The great thing that worked perfectly created three rows with four months and as you select one of those months you can see the profits you had in that month.
Todo gracias a un método de raíz y la ubicación de cada uno de esos meses dentro de un array general.
All thanks to a root method and the location of each of those months within a general array.


0
0
0.000
2 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. 
 

0
0
0.000
avatar

Congratulations @dobro2020! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 65000 upvotes.
Your next target is to reach 70000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Our Hive Power Delegations to the July PUM Winners
0
0
0.000