OneCX SearchHeader
Overview
This document aims to showcase how to manage SearchHeader component.
This component displays the search result data as a diagram. Please, visit the storybook page for the SearchHeader component and interact with the examples to find out if the component is suitable for the desired use-case.
Customization
The SearchHeader component allows for content customization:
-
define header title
-
add input fields
-
add header actions buttons
-
*ocxAdvanced
directive-
The
*ocxAdvanced
directive specifies whether a field is part of thebasic
oradvanced
mode. This mode can be toggled using the Basic\|Advanced button in the search header which is only displayed when this directive is used for defining advanced input fields. The directive will be added to the div element:<form [formGroup]="criteriaGroup"> <div class="grid mt-0 p-fluid"> <div *ocxAdvanced class="col-12 md:col-3"> <span class="p-float-label"> // PLACE YOUR INPUT FIELD HERE </span> </div> ...
-
To find out how to work with the SearchHeader component, please visit the storybook page and interact with the examples to find out the required features. For more in-depth information on the SearchHeader component interface, please read the further documentation.
Inputs
Property name | Type | Default | Description |
---|---|---|---|
|
|
|
Translation key for header title. |
|
|
- |
Translation key for sub-header title. |
|
|
|
Determines if |
|
|
|
Determines to use custom or default rendered breadcrumbs. |
|
|
Array of actions available in the header in form of a button or a menu item. Please refer to PageHeader component for detailed information. |
|
|
|
|
Determines if the search button should be rendered. |
|
|
|
Determines if the reset button should be rendered. |
|
|
- |
Defines the permission key(s) for displaying the searchConfig. |
|
|
- |
Defines page name for searchConfig. |
Outputs
Property name | Type | Description |
---|---|---|
|
|
Emits event when search button is clicked. |
|
|
Emits event when reset button is clicked. |
|
|
Emits the |
|
|
Emits the viewMode |
|
|
Emits the |
Types
SearchHeaderComponentState
SearchHeaderComponentState is used to maintain consistent ComponentState.
Property name | Type | Description |
---|---|---|
|
|
Current active viewMode. |
|
|
Current selected searchConfig. |
SearchConfigData
SearchConfigData is used for the SearchConfig component.
Property name | Type | Description |
---|---|---|
|
|
Name of the searchConfig. |
|
|
Data values to display. |
|
|
List of columns to display. |
|
|
The viewMode for displaying input fields as |