DataTableDensity

Density presets that control vertical and horizontal padding for rows and headers.

Density affects padding only. Row height still grows with cell content, so a column that wraps to two lines is tall at any density — cap it with maxLines if you want uniform rows.

Entries

Link copied to clipboard

Roomiest preset, and the default.

Link copied to clipboard

Slightly tighter vertically, for longer lists that should still read comfortably.

Link copied to clipboard

Tightest preset, fitting the most rows on screen. Suits data-entry style tables.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Padding on each side of a cell's content.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Padding above and below the content of every row and header cell.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.