Interface SupportsEnterPress<C extends com.vaadin.flow.component.Component>

All Known Implementing Classes:
DataGrid, TreeDataGrid

public interface SupportsEnterPress<C extends com.vaadin.flow.component.Component>
A component that supports Enter key handling.
  • Method Details

    • setEnterPressHandler

      void setEnterPressHandler(@Nullable Consumer<SupportsEnterPress.EnterPressEvent<C>> handler)
      Sets code to execute when Enter key is pressed.
      Parameters:
      handler - code to execute when Enter key is pressed or null to remove previously set.