updateMiniCardsGridImpl

suspend fun updateMiniCardsGridImpl(rows: Int, cols: Int, defal: Boolean, actualRows: Int, gridSizes: GridSizes, paginationDirection: String, paginationHeightWidth: Double, doPaginate: Boolean, componentSizes: ComponentSizes, eventType: String, updateGridRows: (Int) -> Unit, updateGridCols: (Int) -> Unit, updateAltGridRows: (Int) -> Unit, updateAltGridCols: (Int) -> Unit, updateGridSizes: (GridSizes) -> Unit)

Internal implementation of updateMiniCardsGrid. This function calculates and updates the grid dimensions for mini cards display.

Parameters

rows

The number of rows in the grid

cols

The number of columns in the grid

defal

If true, updates the main grid; if false, updates the alternate grid

actualRows

The actual number of rows used in calculations

gridSizes

The current grid sizes

paginationDirection

The direction of pagination ("horizontal" or "vertical")

paginationHeightWidth

The height/width reserved for pagination

doPaginate

Whether pagination is enabled

componentSizes

The container component sizes

eventType

The event type (for determining spacing)

updateGridRows

Callback to update main grid rows

updateGridCols

Callback to update main grid columns

updateAltGridRows

Callback to update alternate grid rows

updateAltGridCols

Callback to update alternate grid columns

updateGridSizes

Callback to update grid sizes