API REFERENCE
width
Initial column width in pixels.
What does this API do?
Initial column width in pixels.
Exact input and result types
width?: number| Item | Value |
|---|---|
| Required | Optional |
| Input type | number |
Usage flow
Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Feature explanations and examples
- Column sizing and pinning
Width, order, pinning, and visibility are independent column states. Combine them to pin order IDs, hide supporting information, and widen long product names.