palantir/blueprint

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

Open

#1,863 建立於 2017年12月4日

在 GitHub 查看
 (10 留言) (0 反應) (0 負責人)TypeScript (2,167 fork)batch import
Package: tableType: feature requesthelp wanted

倉庫指標

Star
 (20,263 star)
PR 合併指標
 (平均合併 43天 10小時) (30 天內合併 27 個 PR)

描述

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

貢獻者指南