searchBoxConfig
searchBoxConfig
is controlling the behavior of the search box on search.
...
If using Sitefinity CMS the Search box configuration could be updated by adding JSON object with the options the Data filed of HawksearchBox widget designer Advanced options. Example:
Code Block {"_searchBoxConfig":{"reloadOnEmpty":falsetrue,"redirectOnEmpty":falsetrue,"redirectToCurrentPage":falsetrue}}
updating the config with javascript:
Code Block const config = { ... searchBoxConfig: { reloadOnEmpty: true, redirectOnEmpty: true, redirectToCurrentPage: true }, ... }; var widget = HawksearchVue.createWidget(component, { config: config}); HawksearchVue.initialSearch(widget);
...