SearchbarContext Class Methods

In this section, the SearchbarContext class methods are presented in alphabetical order.

Syntax

SearchbarContext()

Description

Use the SearchbarContext method to customize a search bar and specify which search index to use.

Returns

None.

Example

import PTSF_SEARCHUI:SearchbarContext;

&sc = create PTSF_SEARCHUI:SearchbarContext();

&sc.Placeholder = "custom placeholder text";
&sc.CustomSearchCategory = "PTPORTALREGISTRY"; /* default search category */
&sc.IsIncludeHiddenCref = True; /* only valid for PTPORTALREGISTRY search category */
&sc.IsComponentOrGenericURL = True; /* only valid for PTPORTALREGISTRY search category */
&sc.ShowGridIcons = False;
&sc.ShowCategoryDropDown = False;
&sc.ShowGlobalSearchButton = False;

&sc.SetSearchbarContext();