-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
528 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [FacetProps](./search-ui-react.facetprops.md) | ||
|
||
## FacetProps type | ||
|
||
Props for a single facet component. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type FacetProps = StandardFacetProps; | ||
``` | ||
<b>References:</b> [StandardFacetProps](./search-ui-react.standardfacetprops.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [FacetsCssClasses](./search-ui-react.facetscssclasses.md) > [divider](./search-ui-react.facetscssclasses.divider.md) | ||
|
||
## FacetsCssClasses.divider property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
divider?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [FacetsProps](./search-ui-react.facetsprops.md) > [children](./search-ui-react.facetsprops.children.md) | ||
|
||
## FacetsProps.children property | ||
|
||
The custom facet components that will override the default rendering. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
children?: ReactElement[] | ReactElement | undefined | null; | ||
``` | ||
|
||
## Remarks | ||
|
||
Supported components include [StandardFacet()](./search-ui-react.standardfacet.md)<!-- -->. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [FacetsProps](./search-ui-react.facetsprops.md) > [searchOnChange](./search-ui-react.facetsprops.searchonchange.md) | ||
|
||
## FacetsProps.searchOnChange property | ||
|
||
Whether or not a search is automatically run when a filter is selected. Defaults to true. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
searchOnChange?: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacet](./search-ui-react.standardfacet.md) | ||
|
||
## StandardFacet() function | ||
|
||
A component that displays a single standard facet. Use this to override the default rendering. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function StandardFacet(props: StandardFacetProps): null; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| props | [StandardFacetProps](./search-ui-react.standardfacetprops.md) | [StandardFacetProps](./search-ui-react.standardfacetprops.md) | | ||
|
||
<b>Returns:</b> | ||
|
||
null | ||
|
||
ReactElement | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [collapsible](./search-ui-react.standardfacetprops.collapsible.md) | ||
|
||
## StandardFacetProps.collapsible property | ||
|
||
Whether or not the filter is collapsible. Defaults to true. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
collapsible?: boolean; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/search-ui-react.standardfacetprops.customcssclasses.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [customCssClasses](./search-ui-react.standardfacetprops.customcssclasses.md) | ||
|
||
## StandardFacetProps.customCssClasses property | ||
|
||
CSS classes for customizing the component styling. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
customCssClasses?: FilterGroupCssClasses; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/search-ui-react.standardfacetprops.defaultexpanded.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [defaultExpanded](./search-ui-react.standardfacetprops.defaultexpanded.md) | ||
|
||
## StandardFacetProps.defaultExpanded property | ||
|
||
If the filter group is collapsible, whether or not it should start out expanded. Defaults to true. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
defaultExpanded?: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [fieldId](./search-ui-react.standardfacetprops.fieldid.md) | ||
|
||
## StandardFacetProps.fieldId property | ||
|
||
The fieldId corresponding to the facet | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
fieldId: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [label](./search-ui-react.standardfacetprops.label.md) | ||
|
||
## StandardFacetProps.label property | ||
|
||
The label of the facet. Defaults to facet's displayName if not provided. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
label?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) | ||
|
||
## StandardFacetProps interface | ||
|
||
Props for the [StandardFacet()](./search-ui-react.standardfacet.md) component. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface StandardFacetProps | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [collapsible?](./search-ui-react.standardfacetprops.collapsible.md) | boolean | <i>(Optional)</i> Whether or not the filter is collapsible. Defaults to true. | | ||
| [customCssClasses?](./search-ui-react.standardfacetprops.customcssclasses.md) | [FilterGroupCssClasses](./search-ui-react.filtergroupcssclasses.md) | <i>(Optional)</i> CSS classes for customizing the component styling. | | ||
| [defaultExpanded?](./search-ui-react.standardfacetprops.defaultexpanded.md) | boolean | <i>(Optional)</i> If the filter group is collapsible, whether or not it should start out expanded. Defaults to true. | | ||
| [fieldId](./search-ui-react.standardfacetprops.fieldid.md) | string | The fieldId corresponding to the facet | | ||
| [label?](./search-ui-react.standardfacetprops.label.md) | string | <i>(Optional)</i> The label of the facet. Defaults to facet's displayName if not provided. | | ||
| [showMoreLimit?](./search-ui-react.standardfacetprops.showmorelimit.md) | number | <i>(Optional)</i> Limit on the number of options to be displayed. Defaults to 10. | | ||
| [showOptionCounts?](./search-ui-react.standardfacetprops.showoptioncounts.md) | boolean | <i>(Optional)</i> Whether or not to show the option counts for each filter. Defaults to true. | | ||
| [transformOptions?](./search-ui-react.standardfacetprops.transformoptions.md) | (options: DisplayableFacetOption\[\]) => DisplayableFacetOption\[\] | <i>(Optional)</i> A function to transform facet's options. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [showMoreLimit](./search-ui-react.standardfacetprops.showmorelimit.md) | ||
|
||
## StandardFacetProps.showMoreLimit property | ||
|
||
Limit on the number of options to be displayed. Defaults to 10. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
showMoreLimit?: number; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/search-ui-react.standardfacetprops.showoptioncounts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [showOptionCounts](./search-ui-react.standardfacetprops.showoptioncounts.md) | ||
|
||
## StandardFacetProps.showOptionCounts property | ||
|
||
Whether or not to show the option counts for each filter. Defaults to true. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
showOptionCounts?: boolean; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/search-ui-react.standardfacetprops.transformoptions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [StandardFacetProps](./search-ui-react.standardfacetprops.md) > [transformOptions](./search-ui-react.standardfacetprops.transformoptions.md) | ||
|
||
## StandardFacetProps.transformOptions property | ||
|
||
A function to transform facet's options. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
transformOptions?: (options: DisplayableFacetOption[]) => DisplayableFacetOption[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.