palantir/blueprint

[Table] Auto-size column widths based on cell contents and a maximum width

Open

#1863 aperta il 4 dic 2017

Vedi su GitHub
 (10 commenti) (0 reazioni) (0 assegnatari)TypeScript (2167 fork)batch import
Package: tableType: feature requesthelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

Currently you have to manually set the sizes of each column, but we've had requests for the columns to auto-size based on their contents.

It'd be fine if this were a instance method function like the resize rows functions: http://blueprintjs.com/docs/#table-js.instance-methods.

It could either by a getColumnWidths function, or a autoSetColumnWidths(maxSize).

Guida contributor