on ‎2019 Jul 25 12:27 PM
Request clarification before answering.
Hello,
Unfortunately, there is no such a setting in the Simple Search and Filters widget. You have to provide some custom code to the widget to achieve it. The best would be to extend the class the FullTextSearchController and override a method public void initialize(final Component comp) like below:
public class CustomFullTextSearchController extends FullTextSearchController
{
@Override
public void initialize(final Component comp) {
super.initialize(comp);
searchBox.setVisible(false);
searchButton.setVisible(false);
}
}
It will remove the search button from each Simple Search and Filters widget instance in a mashup. If you only want to remove it from one place you have to create your own widget by extending Simple Search and Filters (how to extend widget) and change the mashup (replace widget for your custome one in *-widgets.xml file)
<widget-extension widgetId="workflowDetails-tasks-collectionbrowser">
<remove widgetId="workflowDetails-tasks-fulltext-search"/>
<widget id="workflowDetails-tasks-fulltext-search" widgetDefinitionId="com.hybris.cockpitng.customfulltextsearch"
slotId="toolbarCenter">
<setting key="fulltextSearchConfigCtxCode" type="String">workflowDetails-tasks-fulltext-search</setting>
<virtual-sockets/>
</widget>
</widget-extension>
Regards,
Tomek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.