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
Signature TypeScript complète extraite du fichier du composable.
Interfaces consommées
IInternalDataTableHeader
API
Valeurs de retour
Propriétés et méthodes exposées par l'objet retourné par le composable.
- 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
Exemples
Extraits de code prêts à coller.
Using getPadding in a custom cell renderer