joemfb / ml-search-ng

angular module for MarkLogic search applications
https://joemfb.github.io/ml-search-ng/
9 stars 10 forks source link

Show More Only When More To Show #77

Open hunterwilliams opened 9 years ago

hunterwilliams commented 9 years ago

As a user, I would prefer that the show more button does not appear when there are there are no more facets to show.

joemfb commented 9 years ago

This is partly covered by #85, but there's still issues with the initial load. The "right" way is to load the stored options, and check if a facet has fewer values than it's limit option. Short of that, it could help to suppress show more if a facet has fewer values than the default show-more step (5).

grtjn commented 8 years ago

Wondering if sum of facet values (as retrieved so far), compared against total estimate could give a hint whether there is more or not. If sum equal total then no, else yes..