jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

DataGrid should provide method for closing inline editor #669

Closed Flaurite closed 2 years ago

Flaurite commented 2 years ago

Description

There is no method for closing inline editor in the DataGrid. We have to unwrap component and use Vaadin API:

dataGrid.withUnwrapped(JmixGrid.class, jmixGrid -> {
    jmixGrid.getEditor().cancel();
});

Changes

Added new method to DataGrid interface:

Method closes editor if it's opened.

QA

Checks that method closes opened editor.

reznikova21 commented 2 years ago

1.2.0-SNAPSHOT - verified