angular-ui/ui-grid

ui.grid.resizeColumns: Option to dynamically resize columns based on content

Open

#3.521 geöffnet am 18. Mai 2015

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
help wantedtype: enhancement

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

A grid-wide option, column-wide option and a public API method to resize columns based on the contents would be really nice.

It looks quite weird to have text cut off on some columns and some columns having too much space. Of course this can be fixed by manually setting the widths, but in my application I can have many different grids with different kinds of data so it would be nice to have this kind of option that works when the grid is resized.

I found that this is implemented in the double click event, but there is no option to enable it per column or per grid or to call it manually.

Contributor Guide