com.vaadin.flow.component.grid.

Class ColumnResizeEvent<T>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Grid<T>>
com.vaadin.flow.component.grid.ColumnResizeEvent<T>

Type Parameters:

T - the grid bean type

All Implemented Interfaces:

Serializable

@DomEvent("column-drag-resize") public class ColumnResizeEvent<T> extends ComponentEvent<Grid<T>>

Event fired when a Grid column is resized by the user.

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • ColumnResizeEvent

      public ColumnResizeEvent(Grid<T> source, boolean fromClient, @EventData("event.detail.resizedColumnKey") String resizedColumnKey)

      Creates a new column resize event.

      Parameters:

      source - the component that fired the event

      fromClient - true if the event was originally fired on the client, false if the event originates from server-side logic

      resizedColumnKey - internal id of the column that was the target of user's resize action

  • Method Details

    • getResizedColumn

      public Grid.Column<T> getResizedColumn()

      Returns the column that was the target of user's resize action

      Returns:

      resize action target column