angular-ui/ui-grid
Auf GitHub ansehensuggestion: grouping: support automatic pinning
Open
#4.123 geöffnet am 5. Aug. 2015
good first issuetype: enhancementworkaround
Repository-Metriken
- Stars
- (5.395 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
It would be great to automatically pin a column when grouping by the column.
I've tried to implement a workaround with the available gridApi, but I cannot find an easy way to see if the column is already pinned (for example, the existance of an isPinnedLeft attribute) or already grouped.
pseudo-code:
gridApi.grouping.on.groupingChanged(col){
if(!col.isPinnedLeft){
gridApi.pinning.pinColumn(col, uiGridPinningConstants.container.LEFT)
}
...
}