T - the grid bean type@DomEvent(value="column-reorder-all-columns") public class ColumnReorderEvent<T> extends ComponentEvent<Grid<T>>
Grid.addColumnReorderListener(com.vaadin.flow.component.ComponentEventListener),
Serialized Formsource| Constructor and Description |
|---|
ColumnReorderEvent(Grid<T> source,
boolean fromClient,
elemental.json.JsonArray columnIDs)
Creates a new column reorder event.
|
ColumnReorderEvent(Grid<T> source,
boolean fromClient,
List<Grid.Column<T>> columns)
Creates a new column reorder event.
|
| Modifier and Type | Method and Description |
|---|---|
List<Grid.Column<T>> |
getColumns()
Gets the new order of the columns.
|
getSource, isFromClient, unregisterListenertoStringpublic ColumnReorderEvent(Grid<T> source, boolean fromClient, @EventData(value="event.detail.columns") elemental.json.JsonArray columnIDs)
source - the component that fired the eventfromClient - true if the event was originally fired on the
client, false if the event originates from
server-side logiccolumnIDs - the internal column IDs; automatically translated to proper
Grid Column instances.public ColumnReorderEvent(Grid<T> source, boolean fromClient, List<Grid.Column<T>> columns)
source - the component that fired the eventfromClient - true if the event was originally fired on the
client, false if the event originates from
server-side logiccolumns - the newly ordered Grid columns. Not null, may be empty.public List<Grid.Column<T>> getColumns()
Copyright © 2025. All rights reserved.