clearing combobox -> clear grid (vaadin14)

is there a way to attach a listener to the clear button ? In my case i am populating a grid based on combo box selection. If i am clearing combo selection i want to clear the grid too.

ive read i can achieve that by using a ValueChangeListener on the comboBox itself, not the clearButton directly

can someone help me with an example?

clearing combobox → clear grid (vaadin14)

        comboBox.addValueChangeListener(event -> {
           if (event.getValue() == null) {
               // combobox value was cleared. 
           }
        });

thank you!