codemanas / cm-typesense-docs

Documentation for Typesense Plugin
8 stars 0 forks source link

Refinement List Options #2

Closed digamber89 closed 2 years ago

digamber89 commented 2 years ago
digamber89 commented 2 years ago
instantsearch.widgets.refinementList({
  container: string|HTMLElement,
  attribute: string,
  // Optional parameters
  operator: string,
  limit: number,
  showMore: boolean,
  showMoreLimit: number,
  searchable: boolean,
  searchablePlaceholder: string,
  searchableIsAlwaysActive: boolean,
  searchableEscapeFacetValues: boolean,
  sortBy: string[]|function,
  templates: object,
  cssClasses: object,
  transformItems: function,
});

These are the params that are passed to filters - it may be possible to send it as data-refinementsettings and mergin with widgetParams

We cant give a transformItems function would be break.