Customize how many facets show with "show more" functionality

Hello, is there a way to customize the number of facets that show before the “show more” button? My client is asking for the Medical Specialty facet to show 10 instead of the default 5. Thank you! Screen Shot 2021-10-21 at 12.16.16 PM|230x295

Solved! Referred to the Facet documentation with code here:

ANSWERS.addComponent('Facets', {
  container: '.facets',
  verticalKey: 'VERTICAL_KEY',
  searchOnChange: true,
  showCount: false,
  showMoreLimit: 2,
  showMoreLabel: 'More',
  showLessLabel: 'Less'
});
1 Like