Hi,
When i install Search Add-on, i found that all filter components are added full-text search condition button. how can i remove it ?
Hello,
There is no API to hide condition from the PopupButton. You should extend screen and remove it manually. For instance:
Screen controller
@UiController("ui_AddConditionScreen")
@UiDescriptor("master-ext-add-condition-screen.xml")
public class MasterExtAddConditionScreen extends AddConditionScreen {
@Override
protected void initCreatePopupButton() {
super.initCreatePopupButton();
String editScreenId = filterComponents.getEditScreenId(FullTextFilterCondition.class);
createPopupButton.removeAction("filter_create_" + editScreenId);
}
}
Screen descriptor
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://jmix.io/schema/ui/window"
caption="msg://io.jmix.ui.app.filter.condition/addConditionScreen.caption"
extends="io/jmix/ui/app/filter/condition/add-condition-screen.xml">
<layout/>
</window>
1 Like
Thanks for your solution !