palantir/blueprint

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

Open

#1,863 opened on 2017年12月4日

GitHub で見る
 (10 comments) (0 reactions) (0 assignees)TypeScript (2,167 forks)batch import
Package: tableType: feature requesthelp wanted

Repository metrics

Stars
 (20,263 stars)
PR merge metrics
 (平均マージ 43d 10h) (30d で 27 merged PRs)

説明

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).

コントリビューターガイド