grid

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PadToFullRows

func PadToFullRows[T any](items []T, rowCount int) []T

PadToFullRows pads a slice to fill complete grid rows. This is useful for grid layouts where you want each column to have the same height (rowCount), adding empty items as needed.

Example: With rowCount=3 and 7 items, this adds 2 padding items to make 9 total (3 complete columns of 3 rows each).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL