get-focus / deprecated-focus-search

Interfaces and components to easily inject search functionalities in you application.
http://getfocus.io/focus-documentation/
MIT License
2 stars 3 forks source link

[Group] Dynamic group list #83

Open tadam75 opened 7 years ago

tadam75 commented 7 years ago

Hello,

For the moment in the metadatas, I can only give a static list of facet I want to group on.

Example :

  groupList: [
        'Division',
        'Entite',
        'ZoneGeographique'
    ]

But the list of facet is dynamic server side (according to the user), so I'd like to have the possibility to give a dynamic list.

Something like that :

  groupList: 
    session.user.isChuckNorris ?
    [
        'Division',
        'Entite',
        'ZoneGeographique'
    ] : 
    [
        'Division',
        'Entite'
    ]