The <search> tag implements search functionality.
Attribute | Type | Mandatory | Description |
---|---|---|---|
class | String | N | Specify the CSS class name defined in the CSS field. |
itemPage | String | Y | Specify a path to a page in the portal structure.. Example: If you set itemPage='page' as shown in code example below, then your search URL may look like this: |
itemView | String | N | Specify a view name responsible for the search page appearance. |
onChange | Function | N | Specify a function called when clicking the Search button. |
placeholder | String | N | Define a text inside the search field. |
searchUrl | String | N | Specify a URL suffix defining a page to redirect to after clicking the Search button. |
searchQuery | String | N | Add search bar initial value. |
showTitle | Boolean | N | Enable title display. The default value is 'false'. |
size | String | N | Specify the search bar size. Available values:
|
title | String | N | Define a custom title instead of a default one. To use a custom title, please set a showTitle attribute equal to 'true' first. |
top | Integer | N | Define the number of matches that can be shown in the search suggestion. |
tsGroupId | Big Integer | N | Enter an ID of the table group to specify the search area. You can find the necessary information in the Text Search Group (ts_group) table. |
<search tsGroupId="157018693719021198" top="3" size="lg" itemPage="page" itemView="Service Portal RO" showTitle="1" onChange="s_widget_custom.search(arguments[0]);"> |