angular-ui/ui-grid

suggestion: grouping: support automatic pinning

Open

#4 123 ouverte le 5 août 2015

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)JavaScript (2 496 forks)batch import
good first issuetype: enhancementworkaround

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur