Analytics & Reports
Analytics

Did You Mean

The container for did-you-means.

Provided Aliases: $didYouMean

Structure

<gb-did-you-mean>
  <gb-list items="{ $didYouMean.didYouMeans }">
    <gb-link on-click="{ $item.onClick }">{ $item.value }</gb-link>
  </gb-list>
</gb-did-you-mean>

Example Implementation

Add this to your html.

<gb-did-you-mean></gb-did-you-mean>

Properties

This component does not have any properties.

State

Property Type Default Notes
didYouMeans Array<{ value: string, onClick: () => void }> [] An array of suggested query replacements, each with an onClick() method to apply its value as the current query.

Events

Event Affected State Properties
'did_you_means_updated' didYouMeans