如何从 Hybris 中的自定义编辑器更新/刷新编辑器区域?
public class CustomEditor extends AbstractComponentWidgetAdapterAware implements CockpitEditorRenderer<Object> {
@Override
public void render(Component parent, EditorContext<Object> editorContext, EditorListener<Object> editorListener) {
Button button = new Button("Click");
button.addEventListener("onClick", (event) -> {
//some logic
//update the Editor Area after logic is done?
});
parent.appendChild(button);
}
}