DataTableDensity

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

Density sets padding, and DataTable's default row height is derived from it — DataTableDefaults.rowHeight is this padding either side of a single line of body text. A row is that tall whatever its cells hold, so a column that wraps is clipped rather than allowed to make the row taller. Pass DataTable a larger rowHeight for cells that need one, or rowHeight = null for rows that grow to fit their content.

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.