Reputation: 57306
In Hybris Backoffice, when any of the type nodes is selected (e.g. products, customers, etc.) by default the simple search is visible. The user then needs to click on the icon to open the advanced search. There are plenty of examples of how to disable simple search and only show the advanced search widget. However what I need is to just swap the visible state of simple and advanced search, that is:
Any pointers are appreciated.
Upvotes: 3
Views: 2740
Reputation: 472
According with Hybris documentation the Advanced Search Widget can be configured for having as a default the advance search hiding the basic search from the UI using the disable-simple-search configuration attribute:
@disable-simple-search: Disables simple search mode and hides its UI elements. Instead, the advanced search mode is activated automatically.
Otherwise, if it doesn't work, do not set any configuration for the search, and implement a fallback UI configuration strategy which will create a configuration on runtime,dynamically creating the UI configuration based on user demands.
Upvotes: 1