useCell
DataTable
stable
Resolve the padding for a DataTable cell based on the column definition. Special columns (data-table-select and data-table-expand) receive a fixed narrow padding; user-defined columns honour the column's own padding setting; all others receive the default undefined (letting CSS tokens drive the spacing).
API
Signature
Full TypeScript signature sourced from the composable file.
Consumed interfaces
IInternalDataTableHeader
API
Return values
Properties and methods exposed by the composable return object.
- getPadding
- Returns a padding shorthand string for the given column. Returns "0 8" for the built-in select/expand columns, the column's own padding value when defined, or undefined to fall back to CSS token-driven spacing.
Usage
Examples
Ready-to-paste usage snippets.
Using getPadding in a custom cell renderer