check Grid
Checks the grid configuration and calculates various parameters based on the number of rows, columns, and active elements.
This function determines:
Whether the grid fits perfectly or needs adjustment
How many elements to add to the main grid
The number of remaining videos for the alternate grid
The configuration of the last row
Return
CheckGridResult containing grid layout calculations
Example:
val options = CheckGridOptions(rows = 3, cols = 4, actives = 10)
val result = checkGrid(options)Content copied to clipboard
Parameters
options
The grid configuration options