Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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);

...